RSSAmplifier

My Sysadmin Cheatsheet · Sep 27, 2018

Let's Encrypt Wildcard Certificates with Certbot and Cloudflare DNS

0
Sign in to vote or save

docs.j7k6.org

28 Sep 2018


  1. Install Certbot and Cloudflare DNS Plugin:
    pip install certbot certbot-dns-cloudflare
    
  2. Create /etc/letsencrypt/cloudflare.ini:
    dns_cloudflare_api_key = <$CLOUDFLARE_API_KEY>
    dns_cloudflare_email = <$CLOUDFLARE_EMAIL>
    
  3. Restrict access to cloudflare.ini:
    chmod 0400 /etc/letsencrypt/cloudflare.ini
    
  4. Create /etc/letsencrypt/cli.ini:
    dns-cloudflare-credentials = /etc/letsencrypt/cloudflare.ini
    server = https://acme-v02.api.letsencrypt.org/directory
    
  5. Get wildcard certificate from Let’s Encrypt:
    certbot certonly --agree-tos --email <$EMAIL> --rsa-key-size 4096 --dns-cloudflare -d *.<$DOMAIN>
    

Read the original on docs.j7k6.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.