Update SSLOptions to match documentation. (#25080)

This commit is contained in:
Jarom Loveridge
2018-04-18 09:47:35 -07:00
committed by Ryan Cavanaugh
parent 59648ae466
commit 147bef129f
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -104,6 +104,10 @@ export interface MongoClientOptions extends
}
export interface SSLOptions {
// 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.
ciphers?: string;
// 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.
ecdhCurve?: string;
// Default:5; Number of connections for each server instance
poolSize?: number;
// Use ssl connection (needs to have a mongod server with ssl support)
@@ -115,7 +119,7 @@ export interface SSLOptions {
// Array of valid certificates either as Buffers or Strings
sslCA?: Array<Buffer | string>;
// SSL Certificate revocation list binary buffer
sslCRL?: Buffer;
sslCRL?: Array<Buffer | string>;
// SSL Certificate binary buffer
sslCert?: Buffer | string;
// SSL Key file binary buffer
+1
View File
@@ -23,6 +23,7 @@ let options: mongodb.MongoClientOptions = {
sslValidate: false,
checkServerIdentity: function () { },
sslCA: ['str'],
sslCRL: ['str'],
sslCert: new Buffer(999),
sslKey: new Buffer(999),
sslPass: new Buffer(999),