mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Update SSLOptions to match documentation. (#25080)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
59648ae466
commit
147bef129f
Vendored
+5
-1
@@ -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
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user