winrm 2.3.7 → 2.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53e92f8367385f2e0b258849278924102229178c0803018b02796f1a4621f0e0
4
- data.tar.gz: b356e538a6ec990edc0ee74cf373c3a01c3dd89c033abf6c115801619bd6647d
3
+ metadata.gz: 12357789d07a2c410fd7d9dabc47237f4fb23523913d49b76ae625675acad60b
4
+ data.tar.gz: 1d01ca1491d81e468a12c60452d075f4f7a76d22d2b2343bb9cd5a56949716cf
5
5
  SHA512:
6
- metadata.gz: 92791b7902230f0f61a75f42da6d7a1424917aa248ee4537bf818376c1efa9a3e353983c2e0269a060ea23986456b32232bce93005c821a9cea9b664d0814eb5
7
- data.tar.gz: 2c8f9db51fb981995ee24581c8eac11e542bc75a007ae3d336b7017975b3ca1dd64473261f6b4147008ca9c596e2f94cdfd4c581b01ec6fa1ca7eee64b3b45ce
6
+ metadata.gz: 90dee0cd3d70197bb5d3209637514b4578bc7cafdd4dce4f5dac17e89d058e546fe1f384f1c671c7b237f472455160188c0208e8a10a507ddf6212bc5ebf647d
7
+ data.tar.gz: f4c05231d9334ba7affbadf45ae47a41271ad6f3df678678a040a36b70de3cfda0fccc53b9e0eec20101866cb3119bbcc260572b0c69fa391480294f224634e2
data/README.md CHANGED
@@ -79,7 +79,7 @@ WinRM::Connection.new(
79
79
  )
80
80
  ```
81
81
 
82
- The `:ssl` transport establishes a connection to the winrm endpoint over a secure sockets layer transport encrypting the entire message. Here are some additional connecion options available to `:ssl` connections:
82
+ The `:ssl` transport establishes a connection to the winrm endpoint over a secure sockets layer transport encrypting the entire message. Here are some additional connection options available to `:ssl` connections:
83
83
 
84
84
  * `:client_cert` - Either a string path to a certificate `.pem` file or a `X509::Certificate` object. This along with an accompanying `:client_key` can be used in lieu of a `:user` and `:password`.
85
85
  * `:client_key` - the path to the private key file accompanying the above mentioned `:client_cert` or an `PKey::Pkey` object.
@@ -87,6 +87,7 @@ The `:ssl` transport establishes a connection to the winrm endpoint over a secur
87
87
  * `:no_ssl_peer_verification` - when set to `true` ssl certificate validation is not performed. With a self signed cert, its a match made in heaven!
88
88
  * `:ssl_peer_fingerprint` - when this is provided, normal certificate validation is skipped and instead the given fingerprint is matched against the certificate of the endpoint for verification.
89
89
  * `:ca_trust_path` - the path to a certificate `.pem` file to trust. Its similar to the `:ssl_peer_fingerprint` but contains the entire certificate to trust.
90
+ * `:cert_store` - an OpenSSL::X509::X509::Store object used for certificate verification.
90
91
 
91
92
  ### `:kerberos`
92
93
  ```ruby
@@ -162,6 +162,7 @@ module WinRM
162
162
  no_ssl_peer_verification! if opts[:no_ssl_peer_verification]
163
163
  @ssl_peer_fingerprint = opts[:ssl_peer_fingerprint]
164
164
  @httpcli.ssl_config.set_trust_ca(opts[:ca_trust_path]) if opts[:ca_trust_path]
165
+ @httpcli.ssl_config.cert_store = opts[:cert_store] if opts[:cert_store]
165
166
  end
166
167
 
167
168
  def send_request(message)
@@ -269,6 +270,7 @@ module WinRM
269
270
  no_ssl_peer_verification! if opts[:no_ssl_peer_verification]
270
271
  @ssl_peer_fingerprint = opts[:ssl_peer_fingerprint]
271
272
  @httpcli.ssl_config.set_trust_ca(opts[:ca_trust_path]) if opts[:ca_trust_path]
273
+ @httpcli.ssl_config.cert_store = opts[:cert_store] if opts[:cert_store]
272
274
  end
273
275
  end
274
276
 
@@ -281,6 +283,7 @@ module WinRM
281
283
  no_ssl_peer_verification! if opts[:no_ssl_peer_verification]
282
284
  @ssl_peer_fingerprint = opts[:ssl_peer_fingerprint]
283
285
  @httpcli.ssl_config.set_trust_ca(opts[:ca_trust_path]) if opts[:ca_trust_path]
286
+ @httpcli.ssl_config.cert_store = opts[:cert_store] if opts[:cert_store]
284
287
  end
285
288
  end
286
289
 
data/lib/winrm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # WinRM module
2
2
  module WinRM
3
3
  # The version of the WinRM library
4
- VERSION = '2.3.7'.freeze
4
+ VERSION = '2.3.8'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.7
4
+ version: 2.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Wanek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-06-27 00:00:00.000000000 Z
14
+ date: 2024-07-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: builder