Comments
Patch
@@ -191,20 +191,20 @@ def _hostsettings(ui, hostname):
cafile = ui.config('web', 'cacerts')
if cafile:
cafile = util.expandpath(cafile)
if not os.path.exists(cafile):
raise error.Abort(_('could not find web.cacerts: %s') %
cafile)
else:
- # No global CA certs. See if we can load defaults.
+ # CAs not defined in config. Try to find system bundles.
cafile = _defaultcacerts()
if cafile:
- ui.debug('using %s to enable OS X system CA\n' % cafile)
+ ui.debug('using %s for CA file\n' % cafile)
s['cafile'] = cafile
# Require certificate validation if CA certs are being loaded and
# verification hasn't been disabled above.
if cafile or (_canloaddefaultcerts and s['allowloaddefaultcerts']):
s['verifymode'] = ssl.CERT_REQUIRED
else: