-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssl_peer_certificate/2 does not work for some streams #107
Comments
The problem is that the stream returned by http_open/3 is not always the SSL stream(-pair). Notably if Now there are some options. One is to make ssl_peer_certificate/2 follow the chain of upstream streams to find the SSL stream. The other is to add something to the HTTPS options of http_open/3 to get the peer certificate. It seems the latter could be done inside the HTTPS http_protocol_hook/5. I do not have a clear preference. |
To me, at least from a first look, making Please note that both |
Surely it does no harm. Pushed 96c80cd that fixes this example. |
We run into this problem as part of #102. Please consider the following code:
The following works exactly as expected to obtain the certificate of
www.aap.nl
:However, the following slightly modified URL no longer works:
This yields:
Since the host is exactly the same (
www.aap.nl
), we expect the exact same behaviour forssl_peer_certificate/2
.The text was updated successfully, but these errors were encountered: