Skip to content
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

Fixed ProxyConnector ignoring verify_ssl, ssl_context #421

Merged
merged 1 commit into from
Jun 27, 2015
Merged

Fixed ProxyConnector ignoring verify_ssl, ssl_context #421

merged 1 commit into from
Jun 27, 2015

Conversation

panda73111
Copy link
Contributor

The ProxyConnector calls loop.create_connection(ssl=True), where a new default ssl context is then created. This causes the exception "ClientOSError: Cannot connect to host ..." to be raised when connecting to websites with self signed certificates, even after passing verify_ssl=False to ProxyConnector.
Using this patch, the ProxyConnector passes the ssl context created in its superclass TCPConnector (in dependence of verify_ssl) to loop.create_connection().

@asvetlov
Copy link
Member

The patch looks good but test is required. Mocking connection is ok.

@panda73111
Copy link
Contributor Author

Sure thing. However, I'm not familiar with python unit tests, so it will take a few days. I'll have a look at the existing tests.

@asvetlov
Copy link
Member

Please do.
I can write a test but really I'd like to have PR fully completed.

@asvetlov asvetlov merged commit 79846e1 into aio-libs:master Jun 27, 2015
@asvetlov
Copy link
Member

Thanks

@lock
Copy link

lock bot commented Oct 30, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 30, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants