Skip to content

Instantly share code, notes, and snippets.

@assodefis
Forked from fuyuanli/cloudflare-pve-acme.sh
Last active August 8, 2021 19:41
Show Gist options
  • Save assodefis/2414e96d794171581aabaad88d14e1f9 to your computer and use it in GitHub Desktop.
Save assodefis/2414e96d794171581aabaad88d14e1f9 to your computer and use it in GitHub Desktop.
acme.sh + Proxmox VE
# CloudFlare API
#
# Please install "acme.sh" before runnung this script.
# curl https://get.acme.sh/ | sh
#
export CF_Email="Your_CloudFlare_Account@example.com"
export CF_Key="Your_CloudFlare_API_Key"
/root/.acme.sh/acme.sh --issue \
-d $DOMAIN \
--dns dns_cf --dnssleep 30 \
--fullchain-file /etc/pve/local/pveproxy-ssl.pem \
--key-file /etc/pve/local/pveproxy-ssl.key \
--reloadcmd "systemctl restart pveproxy"
# Gandi.net API
#
# Please install "acme.sh" before runnung this script.
# curl https://get.acme.sh/ | sh
#
DOMAIN="pve.example.com"
export GANDI_LIVEDNS_KEY="YOURKEY"
/root/.acme.sh/acme.sh --issue \
-d $DOMAIN \
--dns dns_gandi_livedns --dnssleep 30 \
--key-file /etc/pve/local/pveproxy-ssl.key \
--fullchain-file /etc/pve/local/pveproxy-ssl.pem \
--reloadcmd "systemctl restart pveproxy" \
--debug \
--force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment