You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on some security-related things and want to verify what TLS/SSL protocol has been negotiated after a connection is made before I start trusting it. The world of TLS libraries are a bit inconsistent (ruby openssl has SSLContext#ssl_version= to set a specific version, Go tls has MinVersion for a minimum version). To avoid confusion, I want to ask the socket about its session before I move forward sending sensitive data over the encrypted channel.
Situation -
To do this check, SSLSocket has a #session to get me the OpenSSL::SSL::Session object. To be Under MRI, this seems to work, even if it's quite obscure. For example, to ask what was negotiated, Session#to_text will tell me.
This fails under JRuby 1.7.17 during the OpenSSL::SSL::SSLSocket#session call because OpenSSL::SSL::Session is not defined.
This is NOT a blocker. While I don't yet know of a run-time work-around, I can work around this by doing more extensive testing which I'll need to do anyway.
The text was updated successfully, but these errors were encountered:
Background -
I'm working on some security-related things and want to verify what TLS/SSL protocol has been negotiated after a connection is made before I start trusting it. The world of TLS libraries are a bit inconsistent (ruby openssl has
SSLContext#ssl_version=
to set a specific version, Go tls hasMinVersion
for a minimum version). To avoid confusion, I want to ask the socket about its session before I move forward sending sensitive data over the encrypted channel.Situation -
To do this check, SSLSocket has a
#session
to get me theOpenSSL::SSL::Session
object. To be Under MRI, this seems to work, even if it's quite obscure. For example, to ask what was negotiated,Session#to_text
will tell me.This fails under JRuby 1.7.17 during the
OpenSSL::SSL::SSLSocket#session
call because OpenSSL::SSL::Session is not defined.This is NOT a blocker. While I don't yet know of a run-time work-around, I can work around this by doing more extensive testing which I'll need to do anyway.
The text was updated successfully, but these errors were encountered: