diff --git a/common/persistence/mongo_persistence_adaptor.py b/common/persistence/mongo_persistence_adaptor.py index 647640c7..dd790a2a 100644 --- a/common/persistence/mongo_persistence_adaptor.py +++ b/common/persistence/mongo_persistence_adaptor.py @@ -48,8 +48,8 @@ def _build_client(): with open(_CERT_FILE_PATH, "w") as cert_file: cert_file.write(cert) kwargs = { - 'ssl': True, - 'ssl_ca_certs': _CERT_FILE_PATH + 'tls': True, + 'tlsCAFile': _CERT_FILE_PATH } return AsyncIOMotorClient(config.get_config('DB_ENDPOINT_URL'), **kwargs)