]> git.openstreetmap.org Git - chef.git/commitdiff
Correct over aggressive search and replace
authorTom Hughes <tom@compton.nu>
Fri, 26 Jan 2018 09:21:11 +0000 (09:21 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 26 Jan 2018 09:21:11 +0000 (09:21 +0000)
cookbooks/letsencrypt/files/default/bin/check-certificate

index 46ca8e848f62b6f660e2b6cec436b40b996851ec..608d9e7af2b7a4a4e55fcba1119866f56ef637b1 100755 (executable)
@@ -16,16 +16,16 @@ begin
     subject_alt_name = certificate.extensions.find { |e| e.oid == "subjectAltName" }
 
     if subject_alt_name.nil?
-      puts "Certificate #{domain} has no subject_alt_name"
+      puts "Certificate #{domain} has no subjectAltName"
     else
       alt_names = subject_alt_name.value.split(/\s*,\s*/).sort
 
       ARGV.sort.each do |expected|
-        puts "Certificate #{domain} is missing subject_alt_name #{expected}" unless alt_names.shift == "DNS:#{expected}"
+        puts "Certificate #{domain} is missing subjectAltName #{expected}" unless alt_names.shift == "DNS:#{expected}"
       end
 
       alt_names.each do |name|
-        puts "Certificate #{domain} has unexpected altName #{name}"
+        puts "Certificate #{domain} has unexpected subjectAltName #{name}"
       end
     end
   end