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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/check_certificate_chain +4 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e249541543f17379be14e497d060101e31454cf
4
- data.tar.gz: 8d667a7f31a552b209daf3f56ff9df2ffaf648bd
3
+ metadata.gz: 1b1f111c9b970e3f1ba27d318abcb37d15fc78fe
4
+ data.tar.gz: 02ff75479c3372d3f340e749c00a6b9924553e38
5
5
  SHA512:
6
- metadata.gz: 4dd6caf84eca88a2f7c138abac89b37b5a9f445eb2b25994e2a369ec336f8a4f24a2d84588920610e954d24dd80e51a06e80ead15209e2ad5397da6cc2749c90
7
- data.tar.gz: 3c4ce2be1cd2670102bebe00a3c740f0f07a132738a24d786c74e055624aa85b2ae555981167ea3f7042ac9f9d11a4779120dd4ec2c81d23d6c534f7100556dd
6
+ metadata.gz: fb35b91e067b729241e940f9bacfdd1edf660dcc095e4dbd5ca0cfcc0c7b5fe0f4a14290ed3fe96a583a2cc204480b0ff2608949ad48f347eee38f54313ed93d
7
+ data.tar.gz: 3b59462f5a386c32dbcd2c2253100ea07a7b6b2f28a4f8be964e95e785ca31c7169b47a949b2eed9a4eac75e329b10ce5750e7865ad8903232b06bd81dd8e4ea
@@ -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] << "--- The certificate will expire in " +
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.1
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.4.5.2
55
+ rubygems_version: 2.6.12
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: Check HTTPS certificates