Public | Automated Build

Last pushed: a year ago
Short Description
A shell script to get/update Let's encrypt certs quickly. github.com/xdtianyu/scripts/lets-encrypt
Full Description

Docker Build

$ docker build -t hbrls/letsencrypt .

Howto

  1. run

     $ docker run -it --rm \
       --add-host acme-v01.api.letsencrypt.org:23.37.148.228 \  # aliyun sucks
       -e ACCOUNT_KEY={REPLACE_yourname}.key \
       -e DOMAIN_KEY={REPLACE_yourdomain.com}.key \
       -e DOMAIN_DIR=/app \
       -e DOMAINS="DNS:{REPLACE_yourdomain.com},DNS:{REPLACE_www.yourdomain.com}" \
       -v /path/to/your/app:/app \
       -v /etc/nginx/cert:/cert \
       hbrls/letsencrypt
    
  2. will generate

     lets-encrypt-x1-cross-signed.pem
     {REPLACE_yourname}.key
     {yourdomain}.chained.crt          # -> fullchain.pem
     {yourdomain.com}.key              # -> privkey.pem
     {yourdomain}.crt
     {yourdomain}.csr
    
  3. nginx conf

     ssl_certificate     /etc/nginx/cert/{yourdomain}.chained.crt;
     ssl_certificate_key /etc/nginx/cert/{yourdomain.com}.key;
    

Credit

  1. diafygi/acme-tiny
Docker Pull Command
Owner
hbrls
Source Repository

Comments (0)