"SSL: CERTIFICATE_VERIFY_FAILED" should show cert at least with --debug
When connecting to a site with a broken TLS certificate, httpie only displays the one-liner Python error message.
It would be nice, if it would print the certificate chain in human readable form, maybe even with a hint that e.g. the intermediate certificate is no longer valid, the common name does not match or the certificate is self signed.
I'd like to take this issue.
@darthbeep go for it 👍
Would you be ok with importing sockets and cryptography? I'm not sure it's possible to do without them.
@lathspell would you mind sharing an example website that we can use to reproduce this problem?