mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 21:25:59 +00:00
fixed SSL with MongoDB #885
This commit is contained in:
@@ -73,7 +73,7 @@ const driver = {
|
|||||||
options.tlsCAFile = ssl.sslCaFile;
|
options.tlsCAFile = ssl.sslCaFile;
|
||||||
options.tlsCertificateKeyFile = ssl.sslCertFile || ssl.sslKeyFile;
|
options.tlsCertificateKeyFile = ssl.sslCertFile || ssl.sslKeyFile;
|
||||||
options.tlsCertificateKeyFilePassword = ssl.password;
|
options.tlsCertificateKeyFilePassword = ssl.password;
|
||||||
options.tlsAllowInvalidCertificates = !ssl.rejectUnauthorized;
|
// options.tlsAllowInvalidCertificates = !ssl.rejectUnauthorized;
|
||||||
options.tlsInsecure = !ssl.rejectUnauthorized;
|
options.tlsInsecure = !ssl.rejectUnauthorized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user