My domain is: NA
I ran this command:
/usr/bin/letsencrypt renew --standalone
It produced this output on the console:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/server1.<mydomain>.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/server2.<mydomain>.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator standalone, Installer None
Renewing an existing certificate
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed without reload, fullchain is
/etc/letsencrypt/live/server2.<mydomain>.com/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Issue is incase we have 100 servers for which we need to generate certificate. If there is failure with the certification generation for any one server, then it is very difficult to figure out from the standard output.
under /etc/letsencrypt/renewal, we have multiple configuration files with following content :
/etc/letsencrypt/renewal/server1..com.conf
/etc/letsencrypt/renewal/server2..com.conf
...
and each conf file has following content:
# renew_before_expiry = 30 days
version = 0.40.0
archive_dir = /etc/letsencrypt/archive/server1.<domain>.com
cert = /etc/letsencrypt/live/server1.<domain>/cert.pem
privkey = /etc/letsencrypt/live/server1.<domain>/privkey.pem
chain = /etc/letsencrypt/live/server1.<domain>/chain.pem
fullchain = /etc/letsencrypt/live/server1.<domain>/fullchain.pem
# Options used in the renewal process
[renewalparams]
account = <id>
authenticator = standalone
server = https://acme-v02.api.letsencrypt.org/directory
how do i script the certificate generation one at a time so that i can detect failures?
example -
for CONFFILE in $(/etc/letsencrypt/renewal/*.conf)
do
/usr/bin/letsencrypt renew --standalone --input $CONFFILE > $CONFFILE.log
done
please advice.
My web server is (include version): NA
The operating system my web server runs on is (include version): ubuntu 20.04.4
My hosting provider, if applicable, is: NA
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 0.40.0