check_certificate_chain 1.0.1 → 1.0.2
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 +4 -4
- data/bin/check_certificate_chain +4 -3
- 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: 1b1f111c9b970e3f1ba27d318abcb37d15fc78fe
|
|
4
|
+
data.tar.gz: 02ff75479c3372d3f340e749c00a6b9924553e38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb35b91e067b729241e940f9bacfdd1edf660dcc095e4dbd5ca0cfcc0c7b5fe0f4a14290ed3fe96a583a2cc204480b0ff2608949ad48f347eee38f54313ed93d
|
|
7
|
+
data.tar.gz: 3b59462f5a386c32dbcd2c2253100ea07a7b6b2f28a4f8be964e95e785ca31c7169b47a949b2eed9a4eac75e329b10ce5750e7865ad8903232b06bd81dd8e4ea
|
data/bin/check_certificate_chain
CHANGED
|
@@ -39,10 +39,10 @@ output[:short] = ""
|
|
|
39
39
|
output[:long] = ""
|
|
40
40
|
|
|
41
41
|
if OpenSSL::SSL.verify_certificate_identity(certificate, uri)
|
|
42
|
-
output[:hostname] << "The hostname #{uri} is correctly listed in the certificate\n"
|
|
42
|
+
output[:hostname] << "The hostname (#{uri}) is correctly listed in the certificate\n"
|
|
43
43
|
|
|
44
|
-
output[:hostname] << "
|
|
45
|
-
((certificate.not_after - certificate.not_before).to_i / (24 * 60 * 60)).to_s + " days.\n"
|
|
44
|
+
output[:hostname] << "The certificate will expire in " +
|
|
45
|
+
((certificate.not_after - certificate.not_before).to_i / (24 * 60 * 60)).to_s + " days.\n---\n"
|
|
46
46
|
else
|
|
47
47
|
output[:hostname] << "None of the common names in the certificate match the name that was enterred " +
|
|
48
48
|
"(#{uri})\n---\n"
|
|
@@ -100,4 +100,5 @@ end
|
|
|
100
100
|
|
|
101
101
|
puts output[:header]
|
|
102
102
|
puts output[:short]
|
|
103
|
+
puts output[:hostname]
|
|
103
104
|
puts output[:long]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: check_certificate_chain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jora Porcu
|
|
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
52
52
|
version: '0'
|
|
53
53
|
requirements: []
|
|
54
54
|
rubyforge_project:
|
|
55
|
-
rubygems_version: 2.
|
|
55
|
+
rubygems_version: 2.6.12
|
|
56
56
|
signing_key:
|
|
57
57
|
specification_version: 4
|
|
58
58
|
summary: Check HTTPS certificates
|