From bc92a63111d269ab9844166baae4719a4c2f1c2e Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Fri, 6 Sep 2024 13:59:17 +0200 Subject: [PATCH] fixed SSL with MongoDB #885 --- plugins/dbgate-plugin-mongo/src/backend/driver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dbgate-plugin-mongo/src/backend/driver.js b/plugins/dbgate-plugin-mongo/src/backend/driver.js index ffb777b6..db2f637e 100644 --- a/plugins/dbgate-plugin-mongo/src/backend/driver.js +++ b/plugins/dbgate-plugin-mongo/src/backend/driver.js @@ -73,7 +73,7 @@ const driver = { options.tlsCAFile = ssl.sslCaFile; options.tlsCertificateKeyFile = ssl.sslCertFile || ssl.sslKeyFile; options.tlsCertificateKeyFilePassword = ssl.password; - options.tlsAllowInvalidCertificates = !ssl.rejectUnauthorized; + // options.tlsAllowInvalidCertificates = !ssl.rejectUnauthorized; options.tlsInsecure = !ssl.rejectUnauthorized; }