# File lib/hammer_cli/ca_cert_manager.rb, line 42 def download(uri) noverify_ssl_connection = OpenSSL::SSL::SSLSocket.new(TCPSocket.new(uri.host, uri.port), noverify_ssl_context) noverify_ssl_connection.connect noverify_ssl_connection.peer_cert_chain.last end
# File lib/hammer_cli/ca_cert_manager.rb, line 50 def noverify_ssl_context noverify_ssl_context = OpenSSL::SSL::SSLContext.new noverify_ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE noverify_ssl_context end