        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..."

   fi
   cat "${BASEDIR}/certs/${domain}/chain-${timestamp}.pem" >> "${BASEDIR}/certs/${domain}/fullchain-${timestamp}.pem"
 
@@ -560,7 +567,7 @@
     if [[ -e "${cert}" ]]; then
       printf " + Checking domain name(s) of existing cert..."
 

   rm -f "${tmp_openssl_cnf}"
 
   crt_path="${BASEDIR}/certs/${domain}/cert-${timestamp}.pem"
@@ -518,9 +525,9 @@
   # Create fullchain.pem
   echo " + Creating fullchain.pem..."
   cat "${crt_path}" > "${BASEDIR}/certs/${domain}/fullchain-${timestamp}.pem"
