guidoG
Denoβ€’16mo agoβ€’
3 replies
guido

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

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.
Was this page helpful?