mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add ssla ca certificate if should
This commit is contained in:
parent
4d4c01519e
commit
f4e58771a2
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue