Helper Script to publish LetsEncrypt ACME-Certs to Nutanix PrismCentral (and PrismElement)
You need a working acme.sh install, find details here: https://github.com/acmesh-official/acme.sh
curl https://get.acme.sh | sh -s email=my@example.com
Install acme2pc.sh from this Repo to a directory of your choice:
curl -o acme2pc.sh https://raw.githubusercontent.com/wolfganghuse/acme2pc/main/acme2pc.sh
chmod +x acme2pc.sh
Example 1: Single domain.
acme.sh --issue -d pc.example.com
Example 2: Single domain using DNS01 via Cloudflare.
acme.sh --issue --dns dns_cf -d pc.example.com
acme.sh --install-cert --domain pc.example.com --reloadcmd "/home/centos/acme2pc.sh -h pc-ip -d pc.example.com -u pc-user -p pc-pass"
acme2pc.sh accepts the following Paramters:
ENV-Parameter | CLI Flag | Details |
---|---|---|
DOMAIN | -d | domain (from acme.sh client) |
PRISMCENTRAL | -h | Prism IP/Hostname |
USERNAME | -u | Prism Username |
PASSWORD | -p | Prism Password |
You can also create a acme2pc.env File in a .secret sub-directory (commonly used for Username/Password)