Module: Sus::Fixtures::OpenSSL::VerifiedCertificateContext
- Defined in:
- lib/sus/fixtures/openssl/verified_certificate_context.rb
Instance Method Summary collapse
Instance Method Details
#client_context ⇒ Object
19 20 21 22 23 24 |
# File 'lib/sus/fixtures/openssl/verified_certificate_context.rb', line 19 def client_context ::OpenSSL::SSL::SSLContext.new.tap do |context| context.cert_store = certificate_store context.verify_mode = ::OpenSSL::SSL::VERIFY_PEER end end |
#server_context ⇒ Object
12 13 14 15 16 17 |
# File 'lib/sus/fixtures/openssl/verified_certificate_context.rb', line 12 def server_context ::OpenSSL::SSL::SSLContext.new.tap do |context| context.cert = certificate context.key = key end end |