Class: WinRM::HTTP::HttpSSL
- Inherits:
-
HttpTransport
- Object
- HttpTransport
- WinRM::HTTP::HttpSSL
- Defined in:
- lib/winrm/http/transport.rb
Overview
Uses SSL to secure the transport
Instance Attribute Summary
Attributes inherited from HttpTransport
Instance Method Summary collapse
-
#initialize(endpoint, user, pass, ca_trust_path = nil, opts) ⇒ HttpSSL
constructor
A new instance of HttpSSL.
Methods inherited from HttpTransport
#basic_auth_only!, #no_ssl_peer_verification!, #no_sspi_auth!, #send_request
Constructor Details
#initialize(endpoint, user, pass, ca_trust_path = nil, opts) ⇒ HttpSSL
Returns a new instance of HttpSSL.
84 85 86 87 88 89 90 91 |
# File 'lib/winrm/http/transport.rb', line 84 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 |