Skip to content

Instantly share code, notes, and snippets.

@amitsaxena
Created June 20, 2018 00:22
Show Gist options
  • Save amitsaxena/b23cff71812eca2d37f17dd75a406974 to your computer and use it in GitHub Desktop.
Save amitsaxena/b23cff71812eca2d37f17dd75a406974 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