Skip to content

Instantly share code, notes, and snippets.

@amitsaxena
Created June 20, 2018 00:22

Revisions

  1. amitsaxena created this gist Jun 20, 2018.
    9 changes: 9 additions & 0 deletions generate_certificate.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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