diff --git a/lib/charms/mongodb/v1/helpers.py b/lib/charms/mongodb/v1/helpers.py index 8f9e6ff98..7f66faad1 100644 --- a/lib/charms/mongodb/v1/helpers.py +++ b/lib/charms/mongodb/v1/helpers.py @@ -163,7 +163,7 @@ def get_mongod_args( f"--tlsCAFile={full_conf_dir}/{TLS_EXT_CA_FILE}", f"--tlsCertificateKeyFile={full_conf_dir}/{TLS_EXT_PEM_FILE}", # allow non-TLS connections - "--tlsMode=preferTLS", + "--tlsMode=requireTLS", ] )