Class: HammerCLI::CertDownloader

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli/ca_cert_manager.rb

Instance Method Summary collapse

Instance Method Details

#download(uri) ⇒ Object



42
43
44
45
46
# 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