Class: WinRM::HTTP::BasicAuthSSL
- Inherits:
-
HttpTransport
- Object
- HttpTransport
- WinRM::HTTP::BasicAuthSSL
- 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, opts) ⇒ BasicAuthSSL
constructor
A new instance of BasicAuthSSL.
Methods inherited from HttpTransport
#basic_auth_only!, #no_ssl_peer_verification!, #no_sspi_auth!, #send_request, #ssl_peer_fingerprint_verification!, #verify_ssl_fingerprint, #with_untrusted_ssl_connection
Constructor Details
#initialize(endpoint, user, pass, opts) ⇒ BasicAuthSSL
Returns a new instance of BasicAuthSSL.
266 267 268 269 270 271 272 273 274 |
# File 'lib/winrm/http/transport.rb', line 266 def initialize(endpoint, user, pass, opts) super(endpoint, opts) @httpcli.set_auth(endpoint, user, pass) basic_auth_only! 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] @httpcli.ssl_config.cert_store = opts[:cert_store] if opts[:cert_store] end |