Comments
Patch
@@ -437,16 +437,19 @@ def _defaultcacerts(ui):
try:
import certifi
certs = certifi.where()
ui.debug('using ca certificates from certifi\n')
return certs
except ImportError:
pass
+ # Apple's OpenSSL has patches that allow a specially constructed certificate
+ # to load the system CA store. If we're running on Apple Python, use this
+ # trick.
if _plainapplepython():
dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem')
if os.path.exists(dummycert):
return dummycert
return None
def validatesocket(sock):