Skip to content

Commit

Permalink
ssl-check: messaging updates
Browse files Browse the repository at this point in the history
Always start with the domain, for ease of parsing
  • Loading branch information
robmiller committed Aug 16, 2017
1 parent 12bbca0 commit 8c1ccef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/ssl-check
Expand Up @@ -56,7 +56,7 @@ domains.each do |domain|

unless cert
problems = true
puts "Couldn't find SSL certificate for #{domain}"
puts "#{domain}: couldn't find SSL certificate"
next
end

Expand All @@ -65,13 +65,13 @@ domains.each do |domain|

if expiry_in_days < CUTOFF
problems = true
puts "SSL certificate for #{domain} is expiring in #{expiry_in_days.to_i} days, on #{expiry.strftime("%Y-%m-%d")}"
puts "#{domain}: SSL certificate is expiring in #{expiry_in_days.to_i} days, on #{expiry.strftime("%Y-%m-%d")}"
next
end

# At this point, we must have a valid certificate
if VERBOSE
puts "#{domain} SSL certificate is valid and doesn't expire until #{expiry.strftime("%Y-%m-%d")}"
puts "#{domain}: SSL certificate is valid and doesn't expire until #{expiry.strftime("%Y-%m-%d")}"
end
end

Expand Down

0 comments on commit 8c1ccef

Please sign in to comment.