equal
deleted
inserted
replaced
440 ui.debug('using ca certificates from certifi\n') |
440 ui.debug('using ca certificates from certifi\n') |
441 return certs |
441 return certs |
442 except ImportError: |
442 except ImportError: |
443 pass |
443 pass |
444 |
444 |
|
445 # Apple's OpenSSL has patches that allow a specially constructed certificate |
|
446 # to load the system CA store. If we're running on Apple Python, use this |
|
447 # trick. |
445 if _plainapplepython(): |
448 if _plainapplepython(): |
446 dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem') |
449 dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem') |
447 if os.path.exists(dummycert): |
450 if os.path.exists(dummycert): |
448 return dummycert |
451 return dummycert |
449 |
452 |