##// END OF EJS Templates
sslutil: more helpful fingerprint mismatch message...
Matt Mackall -
r15997:a45516cb stable
parent child Browse files
Show More
@@ -122,8 +122,9 b' class validator(object):'
122 if hostfingerprint:
122 if hostfingerprint:
123 if peerfingerprint.lower() != \
123 if peerfingerprint.lower() != \
124 hostfingerprint.replace(':', '').lower():
124 hostfingerprint.replace(':', '').lower():
125 raise util.Abort(_('invalid certificate for %s with '
125 raise util.Abort(_('certificate for %s has unexpected '
126 'fingerprint %s') % (host, nicefingerprint))
126 'fingerprint %s') % (host, nicefingerprint),
127 hint=_('check hostfingerprint configuration'))
127 self.ui.debug('%s certificate matched fingerprint %s\n' %
128 self.ui.debug('%s certificate matched fingerprint %s\n' %
128 (host, nicefingerprint))
129 (host, nicefingerprint))
129 elif cacerts:
130 elif cacerts:
@@ -225,7 +225,8 b' Fingerprints'
225
225
226 - fails when cert doesn't match hostname (port is ignored)
226 - fails when cert doesn't match hostname (port is ignored)
227 $ hg -R copy-pull id https://localhost:$HGPORT1/
227 $ hg -R copy-pull id https://localhost:$HGPORT1/
228 abort: invalid certificate for localhost with fingerprint 28:ff:71:bf:65:31:14:23:ad:62:92:b4:0e:31:99:18:fc:83:e3:9b
228 abort: certificate for localhost has unexpected fingerprint 28:ff:71:bf:65:31:14:23:ad:62:92:b4:0e:31:99:18:fc:83:e3:9b
229 (check hostfingerprint configuration)
229 [255]
230 [255]
230
231
231 - ignores that certificate doesn't match hostname
232 - ignores that certificate doesn't match hostname
General Comments 0
You need to be logged in to leave comments. Login now