Commit caf1fc10 authored by neil's avatar neil
Browse files

add fullchain.pem

parent 06a3d859
...@@ -439,6 +439,9 @@ _initpath() { ...@@ -439,6 +439,9 @@ _initpath() {
if [ -z "$CA_CERT_PATH" ] ; then if [ -z "$CA_CERT_PATH" ] ; then
CA_CERT_PATH="$domainhome/ca.cer" CA_CERT_PATH="$domainhome/ca.cer"
fi fi
if [ -z "$CERT_FULLCHAIN_PATH" ] ; then
CERT_FULLCHAIN_PATH="$domainhome/fullchain.pem"
fi
} }
...@@ -917,6 +920,7 @@ issue() { ...@@ -917,6 +920,7 @@ issue() {
cat "$CERT_PATH" cat "$CERT_PATH"
_info "Your cert is in $CERT_PATH" _info "Your cert is in $CERT_PATH"
cp "$CERT_PATH" "$CERT_FULLCHAIN_PATH"
fi fi
...@@ -936,6 +940,8 @@ issue() { ...@@ -936,6 +940,8 @@ issue() {
curl --silent "$Le_LinkIssuer" | openssl base64 -e >> "$CA_CERT_PATH" curl --silent "$Le_LinkIssuer" | openssl base64 -e >> "$CA_CERT_PATH"
echo -----END CERTIFICATE----- >> "$CA_CERT_PATH" echo -----END CERTIFICATE----- >> "$CA_CERT_PATH"
_info "The intermediate CA cert is in $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 fi
Le_CertCreateTime=$(date -u "+%s") Le_CertCreateTime=$(date -u "+%s")
...@@ -1024,6 +1030,7 @@ renewAll() { ...@@ -1024,6 +1030,7 @@ renewAll() {
CERT_KEY_PATH="" CERT_KEY_PATH=""
CERT_PATH="" CERT_PATH=""
CA_CERT_PATH="" CA_CERT_PATH=""
CERT_FULLCHAIN_PATH=""
ACCOUNT_KEY_PATH="" ACCOUNT_KEY_PATH=""
wellknown_path="" wellknown_path=""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment