You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ssl): adds missing ssl options ssl options for ciphers and ecdhCurve
Adds missingssl options that are required for mongodb-core to establish
ssl handshake with mongo server which is used certificate with ECDH curve
Ports #1579 to 3.0.0
Copy file name to clipboardExpand all lines: lib/topologies/mongos.js
+4
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,8 @@ var legalOptionNames = [
47
47
'sslCA',
48
48
'sslCRL',
49
49
'sslCert',
50
+
'ciphers',
51
+
'ecdhCurve',
50
52
'sslKey',
51
53
'sslPass',
52
54
'socketOptions',
@@ -86,6 +88,8 @@ var legalOptionNames = [
86
88
* @param {object} [options.sslValidate=true] Validate mongod server certificate against ca (needs to have a mongod server with ssl support, 2.4 or higher)
87
89
* @param {array} [options.sslCA=null] Array of valid certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher)
88
90
* @param {array} [options.sslCRL=null] Array of revocation certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher)
91
+
* @param {string} [options.ciphers=null] Passed directly through to tls.createSecureContext. See https://nodejs.org/dist/latest-v9.x/docs/api/tls.html#tls_tls_createsecurecontext_options for more info.
92
+
* @param {string} [options.ecdhCurve=null] Passed directly through to tls.createSecureContext. See https://nodejs.org/dist/latest-v9.x/docs/api/tls.html#tls_tls_createsecurecontext_options for more info.
89
93
* @param {(Buffer|string)} [options.sslCert=null] String or buffer containing the certificate we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
90
94
* @param {(Buffer|string)} [options.sslKey=null] String or buffer containing the certificate private key we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
91
95
* @param {(Buffer|string)} [options.sslPass=null] String or buffer containing the certificate password (needs to have a mongod server with ssl support, 2.4 or higher)
Copy file name to clipboardExpand all lines: lib/topologies/replset.js
+5-1
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,8 @@ var legalOptionNames = [
49
49
'sslValidate',
50
50
'sslCA',
51
51
'sslCert',
52
+
'ciphers',
53
+
'ecdhCurve',
52
54
'sslCRL',
53
55
'sslKey',
54
56
'sslPass',
@@ -96,7 +98,9 @@ var legalOptionNames = [
96
98
* @param {object} [options.sslValidate=true] Validate mongod server certificate against ca (needs to have a mongod server with ssl support, 2.4 or higher)
97
99
* @param {array} [options.sslCA=null] Array of valid certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher)
98
100
* @param {array} [options.sslCRL=null] Array of revocation certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher)
99
-
* @param {(Buffer|string)} [options.sslCert=null] String or buffer containing the certificate we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
101
+
* @param {(Buffer|string)} [options.sslCert=null] String or buffer containing the certificate we wish to present (needs to have a mongod server with ssl support, 2.4 or higher.
102
+
* @param {string} [options.ciphers=null] Passed directly through to tls.createSecureContext. See https://nodejs.org/dist/latest-v9.x/docs/api/tls.html#tls_tls_createsecurecontext_options for more info.
103
+
* @param {string} [options.ecdhCurve=null] Passed directly through to tls.createSecureContext. See https://nodejs.org/dist/latest-v9.x/docs/api/tls.html#tls_tls_createsecurecontext_options for more info.
100
104
* @param {(Buffer|string)} [options.sslKey=null] String or buffer containing the certificate private key we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
101
105
* @param {(Buffer|string)} [options.sslPass=null] String or buffer containing the certificate password (needs to have a mongod server with ssl support, 2.4 or higher)
102
106
* @param {string} [options.servername=null] String containing the server name requested via TLS SNI.
Copy file name to clipboardExpand all lines: lib/topologies/server.js
+4
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ var legalOptionNames = [
44
44
'sslCA',
45
45
'sslCRL',
46
46
'sslCert',
47
+
'ciphers',
48
+
'ecdhCurve',
47
49
'sslKey',
48
50
'sslPass',
49
51
'socketOptions',
@@ -86,6 +88,8 @@ var legalOptionNames = [
86
88
* @param {array} [options.sslCA=null] Array of valid certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher)
87
89
* @param {array} [options.sslCRL=null] Array of revocation certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher)
88
90
* @param {(Buffer|string)} [options.sslCert=null] String or buffer containing the certificate we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
91
+
* @param {string} [options.ciphers=null] Passed directly through to tls.createSecureContext. See https://nodejs.org/dist/latest-v9.x/docs/api/tls.html#tls_tls_createsecurecontext_options for more info.
92
+
* @param {string} [options.ecdhCurve=null] Passed directly through to tls.createSecureContext. See https://nodejs.org/dist/latest-v9.x/docs/api/tls.html#tls_tls_createsecurecontext_options for more info.
89
93
* @param {(Buffer|string)} [options.sslKey=null] String or buffer containing the certificate private key we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
90
94
* @param {(Buffer|string)} [options.sslPass=null] String or buffer containing the certificate password (needs to have a mongod server with ssl support, 2.4 or higher)
91
95
* @param {string} [options.servername=null] String containing the server name requested via TLS SNI.
0 commit comments