@mnordhoff @schoen
Just ran a test to show how both --renew-by-default
and --force-renewal
have no effect (never have and still dont). Nothing is set in the renewal.conf files created and renewals work as they should. Now you can see why passing this parameter for 5 years has never ever raised its ugly head until the presence of a cli.ini file and of course the default for certbot is By default no cli.ini file is created
.
certbot --version
certbot 1.2.0
TEST1: (requesting a certificate with --renew-by-default)
COMMAND LINE:
certbot certonly --webroot --webroot-path /var/www/port80 --agree-tos --rsa-key-size 4096 -m dnsadmin@allover.co.za -d test1.allover.co.za --renew-by-default
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for test1.allover.co.za
Using the webroot path /var/www/port80 for all unmatched domains.
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/test1.allover.co.za/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/test1.allover.co.za/privkey.pem
Your cert will expire on 2020-05-30. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
RENEWAL.CONF CREATED
# renew_before_expiry = 30 days
version = 1.2.0
archive_dir = /etc/letsencrypt/archive/test1.allover.co.za
cert = /etc/letsencrypt/live/test1.allover.co.za/cert.pem
privkey = /etc/letsencrypt/live/test1.allover.co.za/privkey.pem
chain = /etc/letsencrypt/live/test1.allover.co.za/chain.pem
fullchain = /etc/letsencrypt/live/test1.allover.co.za/fullchain.pem
# Options used in the renewal process
[renewalparams]
account = fc2b312de0a4a28fdf590b97d3e5ba7d
rsa_key_size = 4096
authenticator = webroot
webroot_path = /var/www/port80,
server = https://acme-v02.api.letsencrypt.org/directory
[[webroot_map]]
test1.allover.co.za = /var/www/port80
TEST THE RENEWAL
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/test1.allover.co.za.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal
TEST2: (requesting a certificate with --force-renewal)
COMMAND LINE:
certbot certonly --webroot --webroot-path /var/www/port80 --agree-tos --rsa-key-size 4096 -m dnsadmin@allover.co.za -d test2.allover.co.za --force-renewal
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for test2.allover.co.za
Using the webroot path /var/www/port80 for all unmatched domains.
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/test2.allover.co.za/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/test2.allover.co.za/privkey.pem
Your cert will expire on 2020-05-30. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
RENEWAL.CONF CREATED
# renew_before_expiry = 30 days
version = 1.2.0
archive_dir = /etc/letsencrypt/archive/test2.allover.co.za
cert = /etc/letsencrypt/live/test2.allover.co.za/cert.pem
privkey = /etc/letsencrypt/live/test2.allover.co.za/privkey.pem
chain = /etc/letsencrypt/live/test2.allover.co.za/chain.pem
fullchain = /etc/letsencrypt/live/test2.allover.co.za/fullchain.pem
# Options used in the renewal process
[renewalparams]
account = fc2b312de0a4a28fdf590b97d3e5ba7d
rsa_key_size = 4096
authenticator = webroot
webroot_path = /var/www/port80,
server = https://acme-v02.api.letsencrypt.org/directory
[[webroot_map]]
test2.allover.co.za = /var/www/port80
TEST THE RENEWAL:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/test2.allover.co.za.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal