[issue45005] Two Layers of SSL/TLS

2021-08-25 Thread Mjbmr
Change by Mjbmr : -- resolution: wont fix -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue45005] Two Layers of SSL/TLS

2021-08-25 Thread Mjbmr
Mjbmr added the comment: Is there any public document about this or can you give me an example? I can't figure it out what's the incoming and outgoing. -- ___ Python tracker

[issue45005] Two Layers of SSL/TLS

2021-08-25 Thread Christian Heimes
Christian Heimes added the comment: You cannot wrap an SSLSocket in another SSLSocket. It doesn't work due to the way how OpenSSL's BIO layer wraps the system socket. You have to use SSLObject and SSLContext.wrap_bio() for the inner layer. -- resolution: -> wont fix stage: -> reso

[issue45005] Two Layers of SSL/TLS

2021-08-25 Thread Mjbmr
New submission from Mjbmr : A simple script, trying connect to second ssl through first sever doesn't work: import socket, ssl sock = socket.socket() sock.connect(('', 443)) ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE sock = ctx.wrap