acme-tiny add the intermediate cert by itself
authorAndreas Bilke <andreas@bilke.org>
Tue, 12 Jun 2018 17:29:24 +0000 (19:29 +0200)
committerAndreas Bilke <andreas@bilke.org>
Tue, 12 Jun 2018 17:29:24 +0000 (19:29 +0200)
letsencrypt-helper/refresh-acme-certificate
letsencrypt-helper/refresh-acme-certificate-standalone

index b1cee9e..6be2295 100755 (executable)
@@ -81,7 +81,7 @@ trap "rm -f $TMP_SIGNED_CERT" EXIT
 ACME_TINY_COMMAND="python $ACME_TINY_PROG --account-key $ACME_ACCOUNT_KEY --csr $CSR --acme-dir $ACME_DIR"
 echo "Starting acme-tiny client"
 su -c "$ACME_TINY_COMMAND" -s /bin/sh letsencrypt > $TMP_SIGNED_CERT
-cat $TMP_SIGNED_CERT $PUBLIC_KEY_DIR/letsencrypt-intermediate.pem > "$PUBLIC_KEY_DIR/$DOMAIN.intermediate.pem"
+cp $TMP_SIGNED_CERT > "$PUBLIC_KEY_DIR/$DOMAIN.intermediate.pem"
 
 if [ -d "$HOOKS_DIR" ];
 then
index f320359..c9585b3 100755 (executable)
@@ -98,7 +98,7 @@ trap "rm -f $TMP_SIGNED_CERT" EXIT
 ACME_TINY_COMMAND="python $ACME_TINY_PROG --account-key $ACME_ACCOUNT_KEY --csr $CSR_DIR/$DOMAIN.csr --acme-dir $ACME_DIR"
 echo "Starting acme-tiny client"
 su -c "$ACME_TINY_COMMAND" -s /bin/sh letsencrypt > $TMP_SIGNED_CERT
-cat $TMP_SIGNED_CERT $PUBLIC_KEY_DIR/letsencrypt-intermediate.pem > "$PUBLIC_KEY_DIR/$DOMAIN.intermediate.pem"
+cat $TMP_SIGNED_CERT > "$PUBLIC_KEY_DIR/$DOMAIN.intermediate.pem"
 
 echo "Kill acme-http-responder"
 kill -TERM `pgrep -u letsencrypt`