midi-smtp-server
midi-smtp-server copied to clipboard
How to get TLS version and cipher used for the connection
Describe the question
I wanted to log if the connection was secure (used TLS) and if yes, what was the TLS version and cipher for it. We have ctx[:server][:encrypted]
set and encrypted?
method to determine if TLS was used, but no information on cipher and version for the specific connection.
Expected behavior
Have information about TLS cipher and version available in ctx[:server][:encrypted]
or a helper method. exposing the underlying connection @io
object might be sufficient too.
Additional information
Should we expose @io
through ctx
object?