-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Need option to disable SSL certificate verification #31
Comments
I was able to add
|
Thanks for pointing this out. I've added support for |
I have pulled the flexible-tcp-connector branch and tested the 'verify_ssl' configuration setting set as both True and False. I am able to fail and succeed with my proxy as expected, so I would say this tests good in my scenario. If i do not include the 'verify_ssl' item in the configuration dict, I get the following exception.
I am thinking it would be a sane default if set as True and more user friendly if it were an optional configuration item -- not required. |
Great
Argh.. yeah, that was the idea. I incorrectly passed default instead of missing to the It should default to True now, can you test again? Thanks. |
I pulled the updated branch and it behaves the same, only the configuration value is now optional. No exception was raised without it, and the default value is True when not configured. Looks good to me! |
👍 Merged |
Many enterprise environments use SSL MITM proxy services, and thus get the following exception.
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host servicenow.example.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)')]
We need the ability to disable SSL certificate verification through a configuration option when creating an Application object. I believe that configuration should end up looking like this in the snow library.
aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False))
The text was updated successfully, but these errors were encountered: