Re: lets encrypt certbot
Reply #2 –
I use letsencrypt with nginx for my home website. I have a daily cron job. I use dynu.com to provide me with a fixed domain name. LE uses dns checks to verify the domain so I have to set up Dynu_ClientId & Dynu_Secret. I have only one website *****.org, and set up initially using standard acme.sh command.
Cron
/srv/nginx/etc_nginx/certs/acme.sh/xacme.sh --cron
The xacme.sh just sets up my standard environment and then runs the original script ie
xacme.sh
#!/bin/bash
export USER_PATH='/opt/vc/bin:........'
export LE_WORKING_DIR="/srv/nginx/certs/acme.sh"
export LE_CONFIG_HOME="/srv/nginx/certs/acme.sh/data"
export CERT_HOME="/srv/nginx/certs/acme.sh/certs"
export ACCOUNT_EMAIL='*****@gmail.com'
export Dynu_ClientId="***************************"
export Dynu_Secret="*******************************"
exec $LE_WORKING_DIR/acme.sh "$@"
Normally nothing needs to be done. When the cert gets old it updates. The nginx server is restarted every day so will pick up the new cert almost immediately.