diff --git a/krakend-acme/init.sh b/krakend-acme/init.sh index 341602d..3d63e53 100644 --- a/krakend-acme/init.sh +++ b/krakend-acme/init.sh @@ -1,11 +1,11 @@ #!/bin/sh step ca bootstrap --ca-url=https://SI.ca --fingerprint=$(cat /mnt/defaults.json | jq '.fingerprint' -r) --install -if ! [ -f /root/.acme.sh/SI.endpoint_ecc/SI.endpoint.cer -a -f /root/.acme.sh/SI.endpoint_ecc/SI.endpoint.key ] +if ! [ -f /root/.acme.sh/SI.krakend_ecc/SI.krakend.cer -a -f /root/.acme.sh/SI.krakend_ecc/SI.krakend.key ] then - rm -rf /root/.acme.sh/SI.endpoint_ecc/ - /root/.acme.sh/acme.sh --force --issue --standalone -d SI.endpoint --server https://SI.ca/acme/acme/directory --ca-bundle $(step path)/certs/root_ca.crt + rm -rf /root/.acme.sh/SI.krakend_ecc/ + /root/.acme.sh/acme.sh --force --issue --standalone -d SI.krakend --server https://SI.ca/acme/acme/directory --ca-bundle $(step path)/certs/root_ca.crt else - /root/.acme.sh/acme.sh --issue --standalone -d SI.endpoint --server https://SI.ca/acme/acme/directory --ca-bundle $(step path)/certs/root_ca.crt + /root/.acme.sh/acme.sh --issue --standalone -d SI.krakend --server https://SI.ca/acme/acme/directory --ca-bundle $(step path)/certs/root_ca.crt fi update_loop.sh & /usr/bin/krakend run --config /etc/krakend.json diff --git a/krakend-acme/update_loop.sh b/krakend-acme/update_loop.sh index c7ba734..b24d2f8 100644 --- a/krakend-acme/update_loop.sh +++ b/krakend-acme/update_loop.sh @@ -1,12 +1,12 @@ #!/bin/sh while true do - if ! [ -f /root/.acme.sh/SI.endpoint_ecc/SI.endpoint.cer -a -f /root/.acme.sh/SI.endpoint_ecc/SI.endpoint.key ] + if ! [ -f /root/.acme.sh/SI.krakend_ecc/SI.krakend.cer -a -f /root/.acme.sh/SI.krakend_ecc/SI.krakend.key ] then - rm -rf /root/.acme.sh/SI.endpoint_ecc/ - /root/.acme.sh/acme.sh --force --issue --standalone -d SI.endpoint --server https://SI.ca/acme/acme/directory --ca-bundle $(step path)/certs/root_ca.crt + rm -rf /root/.acme.sh/SI.krakend_ecc/ + /root/.acme.sh/acme.sh --force --issue --standalone -d SI.krakend --server https://SI.ca/acme/acme/directory --ca-bundle $(step path)/certs/root_ca.crt else - /root/.acme.sh/acme.sh --issue --standalone -d SI.endpoint --server https://SI.ca/acme/acme/directory --ca-bundle $(step path)/certs/root_ca.crt + /root/.acme.sh/acme.sh --issue --standalone -d SI.krakend --server https://SI.ca/acme/acme/directory --ca-bundle $(step path)/certs/root_ca.crt fi sleep 7200 done