Class: WinRM::HTTP::HttpSSL

Inherits:
HttpTransport show all
Defined in:
lib/winrm/http/transport.rb

Overview

Uses SSL to secure the transport

Constant Summary

Constants inherited from HttpTransport

WinRM::HTTP::HttpTransport::DEFAULT_RECEIVE_TIMEOUT

Instance Attribute Summary

Attributes inherited from HttpTransport

#endpoint

Instance Method Summary collapse

Methods inherited from HttpTransport

#basic_auth_only!, #no_ssl_peer_verification!, #no_sspi_auth!, #receive_timeout, #receive_timeout=, #send_request

Constructor Details

#initialize(endpoint, user, pass, ca_trust_path = nil, opts) ⇒ HttpSSL

Returns a new instance of HttpSSL.



108
109
110
111
112
113
114
115
# File 'lib/winrm/http/transport.rb', line 108

def initialize(endpoint, user, pass, ca_trust_path = nil, opts)
  super(endpoint)
  @httpcli.set_auth(endpoint, user, pass)
  @httpcli.ssl_config.set_trust_ca(ca_trust_path) unless ca_trust_path.nil?
  no_sspi_auth! if opts[:disable_sspi]
  basic_auth_only! if opts[:basic_auth_only]
  no_ssl_peer_verification! if opts[:no_ssl_peer_verification]
end