# Ssl options being specified

**URL:** <https://forums.percona.com/t/ssl-options-being-specified/12052>\
**Category:** Percona Operator for MongoDB\
**Tags:** percona, mongodb\
**Created:** [September 6, 2021, 1:12pm UTC](https://forums.percona.com/t/ssl-options-being-specified/12052 "2021-09-06T13:12:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jml5qh](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@jml5qh](https://forums.percona.com/u/jml5qh)\
**Post date:** [September 6, 2021, 1:12pm UTC](https://forums.percona.com/t/ssl-options-being-specified/12052/1 "2021-09-06T13:12:45Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Vijay\_Kumar](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vijay_kumar/32/4145_2.png) [@Vijay\_Kumar](https://forums.percona.com/u/Vijay_Kumar)\
**Post date:** [September 6, 2021, 1:51pm UTC](https://forums.percona.com/t/ssl-options-being-specified/12052/2 "2021-09-06T13:51:21Z")

</div>

> **[Configure mongod and mongos for TLS/SSL — MongoDB Manual](https://www.mongodb.com/docs/manual/tutorial/configure-ssl/)**

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