From f4e58771a2c8cdeec7052be44ad89f80a28531fe Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 1 Oct 2021 18:37:39 +0200 Subject: [PATCH] add ssla ca certificate if should --- openpype/lib/mongo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/lib/mongo.py b/openpype/lib/mongo.py index d27ec99aa2..c758f0d73c 100644 --- a/openpype/lib/mongo.py +++ b/openpype/lib/mongo.py @@ -182,6 +182,8 @@ class OpenPypeMongoConnection: kwargs = { "serverSelectionTimeoutMS": timeout } + if should_add_certificate_path_to_mongo_url(mongo_url): + kwargs["ssl_ca_certs"] = certifi.where() mongo_client = pymongo.MongoClient(mongo_url, **kwargs)