5

Is it possible to set security level in ruby when calling net::http instead of modifying openssl config?

I found out that OpenSSL has a way how to set security level through

OpenSSL::SSL::SSLContext#security_level

but how can I use it in new Net::Http request?

When I just setup

ctx = OpenSSL::SSL::SSLContext.new
ctx.security_level = 1

it is ignored by http request

Mi Ro
  • 740
  • 1
  • 6
  • 31

0 Answers0