Method: OpenSSL::SSL::SSLContext.new
- Defined in:
- lib/logstash/patches/stronger_openssl_defaults.rb
.new(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/logstash/patches/stronger_openssl_defaults.rb', line 9 def new(*args) c = orig_new(*args) # MRI nor JRuby seem to actually invoke `SSLContext#set_params` by # default, which makes the default ciphers (and other settings) not # actually defaults. Oops! # To force this, and force our (hopefully more secure) defaults on # all things using openssl in Ruby, we will invoke set_params # on all new SSLContext objects. c.set_params c end |