[PATCH 0 of 1 RFC] url: debug print ssl certificate if verify failed
Yuya Nishihara
yuya at tcha.org
Sun Jan 9 09:11:59 CST 2011
Hi, this is second try.
What changed:
- Removed the case ssl connection established but commonName doesn't match.
In this case, 'abort: ...: certificate is for xxx' message shows enough info.
- return multi-line string instead of passing ui.debug (_formatcert())
- split function to decode PEM-encoded text to cert dict (_decodecert())
- add test case
Known issues:
- test case will fail on non-CPython implementation which doesn't have
_ssl._test_decode_cert().
Yuya,
More information about the Mercurial-devel
mailing list