Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get TLS version and cipher used for the connection #58

Open
iuri-gg opened this issue Dec 9, 2023 · 0 comments
Open

How to get TLS version and cipher used for the connection #58

iuri-gg opened this issue Dec 9, 2023 · 0 comments

Comments

@iuri-gg
Copy link
Contributor

iuri-gg commented Dec 9, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant