forked from shaba/openuds
Merge remote-tracking branch 'origin/v3.5'
This commit is contained in:
commit
8f260f5efb
@ -247,6 +247,10 @@ def verifySignature(script: bytes, signature: bytes) -> bool:
|
|||||||
def getCaCertsFile() -> typing.Optional[str]:
|
def getCaCertsFile() -> typing.Optional[str]:
|
||||||
# First, try certifi...
|
# First, try certifi...
|
||||||
|
|
||||||
|
# If environment contains CERTIFICATE_BUNDLE_PATH, use it
|
||||||
|
if 'CERTIFICATE_BUNDLE_PATH' in os.environ:
|
||||||
|
return os.environ['CERTIFICATE_BUNDLE_PATH']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists(certifi.where()):
|
if os.path.exists(certifi.where()):
|
||||||
return certifi.where()
|
return certifi.where()
|
||||||
|
Loading…
Reference in New Issue
Block a user