|
@ -956,9 +956,9 @@ _dbase64() { |
|
|
_checkcert() { |
|
|
_checkcert() { |
|
|
_cf="$1" |
|
|
_cf="$1" |
|
|
if [ "$DEBUG" ]; then |
|
|
if [ "$DEBUG" ]; then |
|
|
openssl x509 -noout -text -in "$_cf" |
|
|
|
|
|
|
|
|
${ACME_OPENSSL_BIN:-openssl} x509 -noout -text -in "$_cf" |
|
|
else |
|
|
else |
|
|
openssl x509 -noout -text -in "$_cf" >/dev/null 2>&1 |
|
|
|
|
|
|
|
|
${ACME_OPENSSL_BIN:-openssl} x509 -noout -text -in "$_cf" >/dev/null 2>&1 |
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -3994,7 +3994,7 @@ _check_dns_entries() { |
|
|
_get_cert_issuers() { |
|
|
_get_cert_issuers() { |
|
|
_cfile="$1" |
|
|
_cfile="$1" |
|
|
if _contains "$(${ACME_OPENSSL_BIN:-openssl} help crl2pkcs7 2>&1)" "Usage: crl2pkcs7"; then |
|
|
if _contains "$(${ACME_OPENSSL_BIN:-openssl} help crl2pkcs7 2>&1)" "Usage: crl2pkcs7"; then |
|
|
${ACME_OPENSSL_BIN:-openssl} crl2pkcs7 -nocrl -certfile $_cfile | openssl pkcs7 -print_certs -text -noout | grep 'Issuer:' | _egrep_o "CN *=[^,]*" | cut -d = -f 2 |
|
|
|
|
|
|
|
|
${ACME_OPENSSL_BIN:-openssl} crl2pkcs7 -nocrl -certfile $_cfile | ${ACME_OPENSSL_BIN:-openssl} pkcs7 -print_certs -text -noout | grep 'Issuer:' | _egrep_o "CN *=[^,]*" | cut -d = -f 2 |
|
|
else |
|
|
else |
|
|
${ACME_OPENSSL_BIN:-openssl} x509 -in $_cfile -text -noout | grep 'Issuer:' | _egrep_o "CN *=[^,]*" | cut -d = -f 2 |
|
|
${ACME_OPENSSL_BIN:-openssl} x509 -in $_cfile -text -noout | grep 'Issuer:' | _egrep_o "CN *=[^,]*" | cut -d = -f 2 |
|
|
fi |
|
|
fi |
|
@ -4714,7 +4714,7 @@ $_authorizations_map" |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
if [ -z "$Le_LinkOrder" ]; then |
|
|
if [ -z "$Le_LinkOrder" ]; then |
|
|
Le_LinkOrder="$(echo "$responseHeaders" | grep -i '^Location.*$' | _tail_n 1 | tr -d "\r\n" | cut -d ":" -f 2-)" |
|
|
|
|
|
|
|
|
Le_LinkOrder="$(echo "$responseHeaders" | grep -i '^Location.*$' | _tail_n 1 | tr -d "\r\n \t" | cut -d ":" -f 2-)" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
_savedomainconf "Le_LinkOrder" "$Le_LinkOrder" |
|
|
_savedomainconf "Le_LinkOrder" "$Le_LinkOrder" |
|
|