Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

certutils.get_host_cert does not work behind proxy #48

Open
xsun12 opened this issue Apr 22, 2015 · 0 comments
Open

certutils.get_host_cert does not work behind proxy #48

xsun12 opened this issue Apr 22, 2015 · 0 comments

Comments

@xsun12
Copy link

xsun12 commented Apr 22, 2015

Another place where recording https archives through proxy is not working yet.

I have a patch that uses httpclient.get_connection (made public) to get a connection and use that connection to retrieve server certificate. This resolves the proxy issue because get_connection() is proxy aware.

cert = connection.sock.getpeercert(True)
cert = ssl.DER_cert_to_PEM_cert(cert)

What do you think?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant