Hey @johnfuqua, I try bio version, it doesn't work as well.
I borrow a piece of a bio code from [2], here's my complete bio test code [1].
Although my bio test did not succeed, I still believe that's because python's wrap_socket doesn't support tls-over-tls, so the idea in my mind is:
1, need to bypass wrap_socket and implement another wrap method (eg: wrap_ssl_socket) with openssl to be able to wrap ssl_socket instead of non-ssl socket, this seems very difficult.
2, or use a third-party solution, eg: pycurl, I'm not sure whether more third-party python libraries have implemented tls-over-tls feature.
Hey @johnfuqua, I try bio version, it doesn't work as well.
I borrow a piece of a bio code from [2], here's my complete bio test code [1].
Although my bio test did not succeed, I still believe that's because python's wrap_socket doesn't support tls-over-tls, so the idea in my mind is:
1, need to bypass wrap_socket and implement another wrap method (eg: wrap_ssl_socket) with openssl to be able to wrap ssl_socket instead of non-ssl socket, this seems very difficult.
2, or use a third-party solution, eg: pycurl, I'm not sure whether more third-party python libraries have implemented tls-over-tls feature.
[1] https:/ /paste. ubuntu. com/p/NTqWKWGph j/plain/ /raw.githubuser content. com/python- trio/trio/ master/ notes-to- self/ssl- handshake/ ssl-handshake. py
[2] https:/