-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
support pinning to ssl certificate via fingerprint #350
Comments
I think See also https://github.com/kennethreitz/requests/blob/35d083e1665beff39aabe47a79cd1f867b897b0c/requests/packages/urllib3/util/ssl_.py#L19 for example of verification code. |
Sounds good to me!
Nice! (Note the most up-to-date version of this upstream is currently https://github.com/shazow/urllib3/blob/master/urllib3/util/ssl_.py#L112 ) |
@asvetlov Just started playing around with a patch and came up with requiredfield/aiohttp@4e66d78. Am I at all on the right track? |
Went ahead and started a pull request for this in #361 |
The PR looks pretty good |
Fixed in #366 |
I need to access an API over https which uses a self-signed cert. I'd like to pin my aiohttp client to the certificate I expect by fingerprint as opposed to by PEM data.
It looks like this is possible in requests with something like http://stackoverflow.com/a/26494652/3341853, but I could imagine aiohttp (and requests as well) supporting a much friendlier API, something like:
Thanks for your consideration and for all the great work on aiohttp, it's awesome.
The text was updated successfully, but these errors were encountered: