I could run the following script to do this before:
./mailinabox/management/ssl_certificates.py -v
But after MiaB switched to certbot
instead, I haven’t found a way to achieve it so far.
Ideas?
I could run the following script to do this before:
./mailinabox/management/ssl_certificates.py -v
But after MiaB switched to certbot
instead, I haven’t found a way to achieve it so far.
Ideas?
Yes! I don’t know why @JoshData needed to setup the renewal call at 14 days level when ‘Let’s Encrypt’ allows up to 30 days (29 days to be sure considering the gap because the UTC time required) . Sometimes, 14 days could not be enough time to debug it if errors/ issues could happen. Perhaps, @JoshData could extend mentioned period up/ close to the official renewal time that Let’s Encrypt gives by default.
[IMPORTANT] Create a snapshot of your BOX server before to proceed:
/home/user-data
to /home/user-data_OLD
and to run through ssh mailinabox afterwards or perhaps, as you said before, ./mailinabox/management/ssl_certificates.py -v
could be enough (knowing the folder and its content doesn’t exist because has been renamed then, the last command should recreate the renamed folder, all its content and the new certificate). When sure well worked don’t forget to delete the old /home/user-data_OLD folder.Thanks for your great hint. I made it by:
cd /home/user-data/ssl
rm -rf
… except for file dh2048.pem
and folder lets_encrypt
(you shall not get blamed for keeping the folder lets_encrypt-old
as I know you go with old-school fashion);curl -s https://mailinabox.email/setup.sh | sudo bash
In a nutshell: Remove all the existing certificates and reinstall (or, in other words, upgrade) the system.
Hope @JoshData can provide us with a better tool as certbot
actually allows us to force the renewal upon the certificates up to 5 times a week.
Had a mistake here: The folder you need to rename is /home/user-data/ssl
to /home/user-data/ssl_OLD
Sorry for that!
I was smart enough to detect that error and avoided myself from some really bad things from happening.
When I do that solution, it fails with this status:
FAILED: service nginx restart
Updating system packages…
Installing system packages…
Initializing system random number generator…
Firewall is active and enabled on system startup
Installing nsd (DNS server)…
Installing Postfix (SMTP server)…
Installing Dovecot (IMAP server)…
Installing OpenDKIM/OpenDMARC…
Installing SpamAssassin…
Installing Nginx (web server)…FAILED: service nginx restart
Any Idea here to avoid this failure?
(version 0.51 of MIB)
Let’s start with determining why you are getting that error. What is the output of nginx -t
?