Ssl options being specified

I am trying to set up a MongoDB cluster using the operator but keep getting errors about using the ssl options instead of tls options. For example:

{“t”:{“$date”:“2021-09-06T13:09:52.310Z”},“s”:“W”, “c”:“CONTROL”, “id”:23322, “ctx”:“main”,“msg”:“Option: sslMode is deprecated. Please use tlsMode instead.”}
9/6/2021 9:09:52 AM {“t”:{“$date”:“2021-09-06T13:09:52.385Z”},“s”:“W”, “c”:“CONTROL”, “id”:23321, “ctx”:“main”,“msg”:“Option: This name is deprecated. Please use the preferred name instead.”,“attr”:{“deprecatedName”:“sslAllowInvalidCertificates”,“preferredName”:“tlsAllowInvalidCertificates”}}
9/6/2021 9:09:52 AM {“t”:{“$date”:“2021-09-06T13:09:52.386Z”},“s”:“F”, “c”:“CONTROL”, “id”:20574, “ctx”:“main”,“msg”:“Error during global initialization”,“attr”:{“error”:{“code”:2,“codeName”:“BadValue”,“errmsg”:“need tlsCertificateKeyFile or certificateSelector when TLS is enabled”}}}

Is there something I need to set up for this to work?

1 Like

https://mongodb.github.io/node-mongodb-native/3.5/tutorials/connect/tls/
here is the guide . please follow the step.
Maybe it is helpful…

1 Like