fixed SSL with MongoDB #885

This commit is contained in:
Jan Prochazka 2024-09-06 13:59:17 +02:00
parent 5ff1009c22
commit bc92a63111

View File

@ -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;
} }