chirptune
chirptune4w ago

How to reuse SSL session

In Ruby, you can create an openssl socket, reuse a session from another ssl socket, and then connect like this:
data_ssl_socket = OpenSSL::SSL::SSLSocket.new(data_socket, context)
# data_ssl_socket.sync_close = true
data_ssl_socket.session = ssl_socket.session
data_ssl_socket = OpenSSL::SSL::SSLSocket.new(data_socket, context)
# data_ssl_socket.sync_close = true
data_ssl_socket.session = ssl_socket.session
I have the impression that's not possible in deno right now, am I correct? I found this https://deno.com/blog/v1.7#tls-session-cache but no code showing how to use it.
2 Replies
bartlomieju
bartlomieju4w ago
Yeah it's not possible
chirptune
chirptune4w ago
Then how can a simple protocol like FTP be supported if there's such little control with sockets? Maybe I'm missing something...