midi-smtp-server icon indicating copy to clipboard operation
midi-smtp-server copied to clipboard

How to get TLS version and cipher used for the connection

Open iuri-gg opened this issue 1 year ago • 0 comments

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?

iuri-gg avatar Dec 09 '23 19:12 iuri-gg