        givennames="$(echo "${domain}" "${morenames}"| tr ' ' '\n' | sort -u | tr '\n' ' ' | _sed 's/ $//' | _sed 's/^ //')"
  
        if [[ "${certnames}" = "${givennames}" ]]; then
-@@ -577,10 +584,10 @@
+@@ -587,10 +594,10 @@
  
      if [[ -e "${cert}" ]]; then
        echo " + Checking expire date of existing cert..."

   if <<<"${reqtext}" grep -q '^[[:space:]]*X509v3 Subject Alternative Name:[[:space:]]*$'; then
     # SANs used, extract these
     altnames="$( <<<"${reqtext}" grep -A1 '^[[:space:]]*X509v3 Subject Alternative Name:[[:space:]]*$' | tail -n1 )"
@@ -378,7 +385,7 @@
         ;;
       "dns-01")
         # Generate DNS entry content for dns-01 validation

         printf "(Longer than %d days). " "${RENEW_DAYS}"
         if [[ "${force_renew}" = "yes" ]]; then
           echo "Ignoring because renew was forced!"
@@ -654,7 +661,7 @@
 
   echo "Revoking ${cert}"
 
