Commit 7554cfca by marwan

add acme script

parent 2c7a39b8
curl --output /root/.acme.sh/renew-hook-update-apisix.sh --silent https://gist.githubusercontent.com/anjia0532/9ebf8011322f43e3f5037bc2af3aeaa6/raw/65b359a4eed0ae990f9188c2afa22bacd8471652/renew-hook-update-apisix.sh
chmod +x /root/.acme.sh/renew-hook-update-apisix.sh
/root/.acme.sh/renew-hook-update-apisix.sh
\ No newline at end of file
export GANDI_LIVEDNS_KEY=GANDI_LIVEDNS_KEY
PATH_BASE=/root/.acme.sh
DOMAIN="*.SUBDOMAIN.DOMAIN"
APISIX_TOKEN=APISIX_TOKEN
APISIX_URI="http://127.0.0.1:9180"
cd ${PATH_BASE}
#mkdir -p ${PATH_BASE}/${DOMAIN}
#issue cert
./acme.sh --force --issue --staging -d "${DOMAIN}" --renew-hook \
"${PATH_BASE}/renew-hook-update-apisix.sh -h ${APISIX_URI} \
-p ${PATH_BASE}/${DOMAIN}_ecc/${DOMAIN}.cer \
-k ${PATH_BASE}/${DOMAIN}_ecc/${DOMAIN}.key \
-a ${APISIX_TOKEN} -t on" \
--dns dns_gandi_livedns \
--log
#renew cert
./acme.sh --renew --domain ${DOMAIN}
\ No newline at end of file
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