nothingctrl/certbot-cf-wildcard

By nothingctrl

Updated over 1 year ago

Using Certbot to request Let's Encrypt wildcard certificate for your domain on CloudFlare

Image

27

Usage example:

  • Create a file cloudflare.ini in creds/ to save CloudFlare "Global API keys" and email auth.

  • Create a docker-compose.yml, example:

    version: "2"
    
    services:
        certbot-ssl:
            image: nothingctrl/certbot-cf-wildcard:0.0.1
            restart: always
            container_name: certbot-ssl
            privileged: true
            ports:
                - 8080:8080
            environment:
                - DOMAIN=foo.bar
                - WEB_PORT=8080
                # - DRY_RUN=1
            volumes:
                - ./creds:/root/creds    
    
  • Run docker-compose up -d to start container

  • Access container on bind port (default: 8080) to download certificate

  • The container will auto loop the certificate request for every 75 days

Docker Pull Command

docker pull nothingctrl/certbot-cf-wildcard