From 2ddb53561fd65d87ea3e68430290d3ac9fb17692 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 26 Jan 2018 09:21:11 +0000 Subject: [PATCH] Correct over aggressive search and replace --- cookbooks/letsencrypt/files/default/bin/check-certificate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/letsencrypt/files/default/bin/check-certificate b/cookbooks/letsencrypt/files/default/bin/check-certificate index 46ca8e848..608d9e7af 100755 --- a/cookbooks/letsencrypt/files/default/bin/check-certificate +++ b/cookbooks/letsencrypt/files/default/bin/check-certificate @@ -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 -- 2.39.5