[Python-Dev] ssl - how to switch back to a plain text socket?

"Martin v. Löwis" martin at v.loewis.de
Tue Feb 19 23:58:26 CET 2008


> I suggest using socket.dup(sslsock) to simply create a non-encrypted
> copy of the socket, and switch to using that copy.  There's no way to
> "unwrap" an SSLSocket.

But shouldn't there be a way to invoke SSL_shutdown? You need to get
the close_notify alert message sent, IIUC.

Regards,
Martin


More information about the Python-Dev mailing list