winrm 2.3.7 → 2.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/winrm/http/transport.rb +3 -0
- data/lib/winrm/psrp/message_data/base.rb +1 -1
- data/lib/winrm/version.rb +1 -1
- data/lib/winrm/wsmv/wql_pull.rb +1 -1
- data/lib/winrm/wsmv/wql_query.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2ad7fa7e2a15820a43f37d4dc3f68074d4700a9c2fe4a69f2832f51f4ae71c9
|
4
|
+
data.tar.gz: 5299213d602e9c74498de6e8b4e5d67a79138fceb2de76c1c26d8f41aacd8561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60378036a89315c7651dfb633686cd404119a148b1dd40c3f16dd3379990aeff7662e6b6233cb4c074515bcbd0a29c01f989769ba22f125fc798d82228ab4e04
|
7
|
+
data.tar.gz: 676184a8973b611833fe8f3c826941b376e818fe2a4463ea54a4eef261bbd2067ee290ae072a94d4aa5c367500ad044de4a1c668cec55e45a73a072601f192ec
|
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
|
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
|
data/lib/winrm/http/transport.rb
CHANGED
@@ -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
|
|
@@ -35,7 +35,7 @@ module WinRM
|
|
35
35
|
parser = Nori.new(
|
36
36
|
parser: :rexml,
|
37
37
|
advanced_typecasting: false,
|
38
|
-
convert_tags_to: ->(tag) {
|
38
|
+
convert_tags_to: ->(tag) { Nori::StringUtils.snakecase(tag).to_sym },
|
39
39
|
strip_namespaces: true
|
40
40
|
)
|
41
41
|
parser.parse(raw)[:obj][:ms]
|
data/lib/winrm/version.rb
CHANGED
data/lib/winrm/wsmv/wql_pull.rb
CHANGED
@@ -15,7 +15,7 @@ module WinRM
|
|
15
15
|
parser = Nori.new(
|
16
16
|
parser: :rexml,
|
17
17
|
advanced_typecasting: false,
|
18
|
-
convert_tags_to: ->(tag) {
|
18
|
+
convert_tags_to: ->(tag) { Nori::StringUtils.snakecase(tag).to_sym },
|
19
19
|
strip_namespaces: true
|
20
20
|
)
|
21
21
|
parser.parse(response.to_s)[:envelope][:body]
|
data/lib/winrm/wsmv/wql_query.rb
CHANGED
@@ -30,7 +30,7 @@ module WinRM
|
|
30
30
|
parser = Nori.new(
|
31
31
|
parser: :rexml,
|
32
32
|
advanced_typecasting: false,
|
33
|
-
convert_tags_to: ->(tag) {
|
33
|
+
convert_tags_to: ->(tag) { Nori::StringUtils.snakecase(tag).to_sym },
|
34
34
|
strip_namespaces: true
|
35
35
|
)
|
36
36
|
@items = Hash.new { |h, k| h[k] = [] }
|
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.
|
4
|
+
version: 2.3.9
|
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-
|
14
|
+
date: 2024-08-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: builder
|
@@ -116,6 +116,9 @@ dependencies:
|
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '2.0'
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: 2.7.1
|
119
122
|
type: :runtime
|
120
123
|
prerelease: false
|
121
124
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -123,6 +126,9 @@ dependencies:
|
|
123
126
|
- - "~>"
|
124
127
|
- !ruby/object:Gem::Version
|
125
128
|
version: '2.0'
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 2.7.1
|
126
132
|
- !ruby/object:Gem::Dependency
|
127
133
|
name: rexml
|
128
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -326,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
326
332
|
- !ruby/object:Gem::Version
|
327
333
|
version: '0'
|
328
334
|
requirements: []
|
329
|
-
rubygems_version: 3.5.
|
335
|
+
rubygems_version: 3.5.11
|
330
336
|
signing_key:
|
331
337
|
specification_version: 4
|
332
338
|
summary: Ruby library for Windows Remote Management
|