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
Constant Summary
Constants inherited from HttpTransport
WinRM::HTTP::HttpTransport::DEFAULT_RECEIVE_TIMEOUT
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!, #receive_timeout, #receive_timeout=, #send_request, #ssl_peer_fingerprint_verification!, #verify_ssl_fingerprint, #with_untrusted_ssl_connection
Constructor Details
#initialize(endpoint, user, pass, ca_trust_path = nil, opts) ⇒ HttpSSL
Returns a new instance of HttpSSL.
228 229 230 231 232 233 234 235 236 |
# File 'lib/winrm/http/transport.rb', line 228 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] @ssl_peer_fingerprint = opts[:ssl_peer_fingerprint] end |