I had some trouble renewing a certificate on a web server today with a particularly “wonky” configuration if you will. The standard certbot methods I would normally use just would not work for me so I had to dig a little deeper into the more “advanced” certbot setups. This brought me to the certbot documentation where I read that the certbot-auto script might be able to help me out, so I gave it a shot and it worked! I started by downloading the script and changing the permissions as instructed:
1 2 |
wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto |
I threw it in a home directory, but that is really dealers choice. Once I had that complete I simply ran the following command and was off to the races:
1 |
/home/administrator/.local/share/certbot-auto certonly --config /etc/letsencrypt/config.ini --webroot -w /opt/<webroot> -d <domain> |