Set ACME CA bundle for revocation
This commit is contained in:
parent
8ee3937619
commit
ae138da916
@ -222,6 +222,10 @@ if [ ! "$URL" = "$ORIGURL" ] || [ ! "$SUBDOMAINS" = "$ORIGSUBDOMAINS" ] || [ ! "
|
|||||||
fi
|
fi
|
||||||
if [ "$ORIGCERTPROVIDER" = "custom" ]; then
|
if [ "$ORIGCERTPROVIDER" = "custom" ]; then
|
||||||
REV_ACMESERVER=$ORIGACMEURL
|
REV_ACMESERVER=$ORIGACMEURL
|
||||||
|
if [ -n "$ORIGACMECABUNDLE" ]; then
|
||||||
|
echo "$ORIGACMECABUNDLE" | base64 -d - > /config/origcabundle.pem
|
||||||
|
export REQUESTS_CA_BUNDLE="/config/origcabundle.pem"
|
||||||
|
fi
|
||||||
elif [ "$ORIGCERTPROVIDER" = "zerossl" ] && [ -n "$ORIGEMAIL" ]; then
|
elif [ "$ORIGCERTPROVIDER" = "zerossl" ] && [ -n "$ORIGEMAIL" ]; then
|
||||||
REV_EAB_CREDS=$(curl -s https://api.zerossl.com/acme/eab-credentials-email --data "email=$ORIGEMAIL")
|
REV_EAB_CREDS=$(curl -s https://api.zerossl.com/acme/eab-credentials-email --data "email=$ORIGEMAIL")
|
||||||
REV_ZEROSSL_EAB_KID=$(echo "$REV_EAB_CREDS" | python3 -c "import sys, json; print(json.load(sys.stdin)['eab_kid'])")
|
REV_ZEROSSL_EAB_KID=$(echo "$REV_EAB_CREDS" | python3 -c "import sys, json; print(json.load(sys.stdin)['eab_kid'])")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user