Skip to content

Instantly share code, notes, and snippets.

@moxie
Forked from amitsaxena/generate_certificate.sh
Created May 7, 2021 10:44
Show Gist options
  • Save moxie/42dc5fad7488b741d282a45ca576be78 to your computer and use it in GitHub Desktop.
Save moxie/42dc5fad7488b741d282a45ca576be78 to your computer and use it in GitHub Desktop.
Generate a free Let’s Encrypt wildcard SSL certificate for your domain
curl https://get.acme.sh | sh
# Open a new terminal window after executing above command
# Create a cloudflare account and get your API key from the profile section
export CF_Email=my.cloudflare@example.com
export CF_Key=replace_with_cloudflare_api_key
# Generate wildcard certificate for *.example.com
acme.sh --issue -d example.com -d '*.example.com' --dns dns_cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment