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

       givennames="$(echo "${domain}" "${morenames}"| tr ' ' '\n' | sort -u | tr '\n' ' ' | _sed 's/ $//' | _sed 's/^ //')"
 
       if [[ "${certnames}" = "${givennames}" ]]; then
@@ -577,10 +584,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"
 
@@ -570,7 +577,7 @@
     if [[ -e "${cert}" ]]; then
       printf " + Checking domain name(s) of existing cert..."
 
