diff --git a/lib/core/uri_parser.js b/lib/core/uri_parser.js index defbeed94c..0f51e0d72e 100644 --- a/lib/core/uri_parser.js +++ b/lib/core/uri_parser.js @@ -436,10 +436,12 @@ function translateTLSOptions(queryString) { } if (queryString.tlsCAFile) { + queryString.ssl = true; queryString.sslCA = queryString.tlsCAFile; } if (queryString.tlsCertificateKeyFile) { + queryString.ssl = true; if (queryString.tlsCertificateFile) { queryString.sslCert = queryString.tlsCertificateFile; queryString.sslKey = queryString.tlsCertificateKeyFile; @@ -450,6 +452,7 @@ function translateTLSOptions(queryString) { } if (queryString.tlsCertificateKeyFilePassword) { + queryString.ssl = true; queryString.sslPass = queryString.tlsCertificateKeyFilePassword; }