class WinRM::HTTP::ClientCertAuthSSL

Uses Client Certificate to authenticate and SSL to secure the transport

Public Class Methods

new(endpoint, client_cert, client_key, key_pass, opts) click to toggle source
Calls superclass method WinRM::HTTP::HttpTransport.new
# File lib/winrm/http/transport.rb, line 276
def initialize(endpoint, client_cert, client_key, key_pass, opts)
  super(endpoint, opts)
  @httpcli.ssl_config.set_client_cert_file(client_cert, client_key, key_pass)
  @httpcli.www_auth.instance_variable_set('@authenticator', [])
  no_ssl_peer_verification! if opts[:no_ssl_peer_verification]
  @ssl_peer_fingerprint = opts[:ssl_peer_fingerprint]
  @httpcli.ssl_config.set_trust_ca(opts[:ca_trust_path]) if opts[:ca_trust_path]
end