summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/ssl.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:22:46 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:22:46 +0000
commit56d3e8ab7b5bb29e814da0097ec18064685a1f60 (patch)
tree2bed8b119b53d2ecb3917ca8680b77281afc15a4 /lib/custodian/protocoltest/ssl.rb
parent0c2d64d6daf9a9a901a3b67730680e3e97c60f8d (diff)
More minor space fixups
Diffstat (limited to 'lib/custodian/protocoltest/ssl.rb')
-rw-r--r--lib/custodian/protocoltest/ssl.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb
index e34e770..4c5343e 100644
--- a/lib/custodian/protocoltest/ssl.rb
+++ b/lib/custodian/protocoltest/ssl.rb
@@ -263,7 +263,7 @@ class SSLCheck
# Check that the certificate is current
#
if self.certificate.not_before < Time.now
- verbose "The certificate for #{self.domain} is valid from #{self.certificate.not_before}."
+ verbose "The certificate for #{self.domain} is valid from #{self.certificate.not_before}."
return true
else
self.errors << verbose("The certificate for #{self.domain} *is not valid yet*.")
@@ -280,7 +280,7 @@ class SSLCheck
days_until_expiry = (self.certificate.not_after.to_i - Time.now.to_i) / (24.0 * 3600).floor.to_i
if days_until_expiry > 14
- verbose "The certificate for #{self.domain} is valid until #{self.certificate.not_after}."
+ verbose "The certificate for #{self.domain} is valid until #{self.certificate.not_after}."
return true
else
if days_until_expiry > 0
@@ -305,7 +305,7 @@ class SSLCheck
# certificate is self-signed.
#
if self.key.is_a?(OpenSSL::PKey) and self.certificate.verify(self.key)
- verbose "Using a self-signed certificate for #{self.domain}."
+ verbose "Using a self-signed certificate for #{self.domain}."
return true
#
@@ -313,7 +313,7 @@ class SSLCheck
# including any bundle that has been uploaded.
#
elsif self.certificate_store.is_a?(OpenSSL::X509::Store) and self.certificate_store.verify(self.certificate)
- verbose "Certificate signed by #{self.certificate.issuer}"
+ verbose "Certificate signed by #{self.certificate.issuer}"
return true
#