From caf1fc10ff5ce40eafa4a969958abf277511d0f8 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 13 Mar 2016 11:37:14 +0800 Subject: [PATCH] add fullchain.pem --- le.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/le.sh b/le.sh index 7ffed9bd..e0464afd 100755 --- a/le.sh +++ b/le.sh @@ -439,6 +439,9 @@ _initpath() { if [ -z "$CA_CERT_PATH" ] ; then CA_CERT_PATH="$domainhome/ca.cer" fi + if [ -z "$CERT_FULLCHAIN_PATH" ] ; then + CERT_FULLCHAIN_PATH="$domainhome/fullchain.pem" + fi } @@ -917,6 +920,7 @@ issue() { cat "$CERT_PATH" _info "Your cert is in $CERT_PATH" + cp "$CERT_PATH" "$CERT_FULLCHAIN_PATH" fi @@ -936,6 +940,8 @@ issue() { curl --silent "$Le_LinkIssuer" | openssl base64 -e >> "$CA_CERT_PATH" echo -----END CERTIFICATE----- >> "$CA_CERT_PATH" _info "The intermediate CA cert is in $CA_CERT_PATH" + cat "$CA_CERT_PATH" >> "$CERT_FULLCHAIN_PATH" + _info "And the full chain certs is there: $CERT_FULLCHAIN_PATH" fi Le_CertCreateTime=$(date -u "+%s") @@ -1024,6 +1030,7 @@ renewAll() { CERT_KEY_PATH="" CERT_PATH="" CA_CERT_PATH="" + CERT_FULLCHAIN_PATH="" ACCOUNT_KEY_PATH="" wellknown_path=""