Module: Codebot::Ext::Cinch::SSLExtensions
- Included in:
- OpenSSL::SSL::SSLContext
- Defined in:
- lib/codebot/ext/cinch/ssl_extensions.rb
Overview
Cinch SSL extensions
Instance Method Summary collapse
-
#ca_path=(path) ⇒ Object
Patch the OpenSSL::SSL::SSLContext#ca_path= method to set cert_store to the default certificate store, which Cinch does not currently do.
Instance Method Details
#ca_path=(path) ⇒ Object
Patch the OpenSSL::SSL::SSLContext#ca_path= method to set cert_store to the default certificate store, which Cinch does not currently do.
16 17 18 19 20 21 22 |
# File 'lib/codebot/ext/cinch/ssl_extensions.rb', line 16 def ca_path=(path) if caller(1..1).first.include?('/lib/cinch/') puts 'Codebot: patching Cinch to use the default certificate store' self.cert_store = OpenSSL::X509::Store.new.tap(&:set_default_paths) end super end |