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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29610>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to