[issue29610] ssl do_handshake fails on https-proxy (aka. https over https-proxy)
Martin Panter
report at bugs.python.org
Mon Feb 20 23:30:22 EST 2017
Martin Panter added the comment:
It looks like you are trying to tunnel one SSL or TLS connection through another SSL/TLS connection (instead of through a plain OS socket). There is already a bug recently opened about this: Issue 29394.
Basically, the SSL module doesn’t support this, and the documentation should be clarified to say something like wrap_socket() only accepts basic socket.socket() objects, not subclasses. However, in Python 3.5+ I think you could use the BIO layer to hook in your intermediate SSL socket (or any other transport).
----------
nosy: +martin.panter
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Cannot tunnel TLS connection through TLS connection
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29610>
_______________________________________
More information about the Python-bugs-list
mailing list