Install Lets Encrypt acme.sh on vCenter 7

Straight from the official webpage: https://github.com/acmesh-official/acme.sh

If you are brave, you can automate Let’s Encrypt management for VCenter.

The installer will perform 3 actions:

  1. Create and copy acme.sh to your home dir ($HOME): ~/.acme.sh/. All certs will be placed in this folder too.
  2. Create alias for: acme.sh=~/.acme.sh/acme.sh.
  3. Create daily cron job to check and renew the certs if needed.
wget -O -  https://get.acme.sh | sh

We ignore the socat error as we will be using the DNS API method to verify ownership.

# Get our super secret global credentials for the Cloudflare API
# If you need to, you can force generation using the --force flag
export CF_Key=f78ab58gfd89g87f9h32g3f1235ab
export CF_Email[email protected]
./acme.sh --issue --dns dns_cf -d "vcenter.rylander.io"