Skip to content

Fixed ProxyConnector ignoring verify_ssl, ssl_context#421

Merged
asvetlov merged 1 commit intoaio-libs:masterfrom
panda73111:master
Jun 27, 2015
Merged

Fixed ProxyConnector ignoring verify_ssl, ssl_context#421
asvetlov merged 1 commit intoaio-libs:masterfrom
panda73111:master

Conversation

@panda73111
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@panda73111
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Thanks

@lock
Copy link
Copy Markdown

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