diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:22:46 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:22:46 +0000 |
commit | ddedddfa53dfe296eb8f0c58e1b9ff86f8301d4d (patch) | |
tree | 24c39cd8770762e37f96886f0894ba4616ab5ccb /lib/custodian/protocoltest/ssl.rb | |
parent | d07ac8ecbedb4831e5aa677b8878f0e8eb37e363 (diff) |
More minor space fixups
Diffstat (limited to 'lib/custodian/protocoltest/ssl.rb')
-rw-r--r-- | lib/custodian/protocoltest/ssl.rb | 8 |
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 # |