serverspec 2.14.0 → 2.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/type/x509_certificate.rb +5 -1
- data/lib/serverspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fe300550c27745bd9a03bcd64182cbe3f3f9552
|
4
|
+
data.tar.gz: 3f9e27015060fb43d7f04f9b36203b30d72a422f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2d318baf95e1261f80fce54e9caacaba9574fd175a57ba6637d3f51ccd674be2b3dac27bee8a661f7d0f09a9df107b051bfcce6cb4a8240cb7763df57d72625
|
7
|
+
data.tar.gz: 1072a58ad8a3e63a184d0b5b0ca23c1e6ca1fb4df20a58aa8a1c4b75235246e99b2595a45661ab1d41c1cdb3fb5694116a84ee8618c1d331f690d82e8d90601a
|
@@ -26,8 +26,12 @@ module Serverspec::Type
|
|
26
26
|
run_openssl_command_with("-alias -noout").stdout.chomp
|
27
27
|
end
|
28
28
|
|
29
|
+
# Modern openssl use following output format for key length:
|
30
|
+
# Public-Key: (4096 bit)
|
31
|
+
# while ancient (0.9.8 for example) use
|
32
|
+
# RSA Public Key: (2048 bit)
|
29
33
|
def keylength
|
30
|
-
len_str = run_openssl_command_with("-text -noout | grep
|
34
|
+
len_str = run_openssl_command_with("-text -noout | grep -E 'Public(-| )Key: \\([[:digit:]]+ bit\\)'").stdout.chomp
|
31
35
|
len_str.gsub(/^.*\(/,'').gsub(/ bit\)$/,'').to_i
|
32
36
|
end
|
33
37
|
|
data/lib/serverspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|