Hello,
if I am going to generate my own certs, is the I-MSCP logic also updating these "foreign" letsencrypt certs or do I have to run the letsencrypt certbot on my own?
Hello,
if I am going to generate my own certs, is the I-MSCP logic also updating these "foreign" letsencrypt certs or do I have to run the letsencrypt certbot on my own?
So what you are doing step-by-step? As I understood:
If yes, self-signed certs (or other else will be replaced with new LetsEncrypt cert.
I am using certbot-auto with "certonly" option. This is generating new letsencrypt certs inside the /etc/letsencrypt/... folder. Inside this folder there are already all certs the I-MSCP plugin generated.
Normally I could call the certbot-auto tool with parameter "renew" - this is going to check each cert and renew it if neccessary.
My question is: Do I have to run it with "renew" command or is this already done by the plugin? (Or only done by the plugin for own certs?!?)
(Currently I generated a letsencrypt cert for my webmin panel and for the imscp services.)
The LetsEncrypt plugin only handles the SSL certificates which are stored in i-MSCP database (SSL certificates which belong to customers). The LetsEncrypt plugin provides a cron job which is responsible to trigger renewal of SSL certificates but again, only SSL certificates that are stored in the i-MSCP database are renewed.
BTW: You have such questions.... We are logic in our way to develop plugins. We would not have any reason to touch an SSL cert which is not generated by the plugin...
Ok thx, than I add a cronjob to renew all daily
(Or maybe there is a switch to renew all in the future? )
NO, don't renew all! Just which are untouched by imscp. So you must not renew customer certificates..
Ok, I did the following (configured - not tested in long time period):
All my services (postfix, dovecot, ftps, webmin, ...) have the same domain: srv.domain.tld
To get the cert:
Benefits:
Not so good:
Edit:
I am using I-MSCP default SSL functions for postfix, dovecot and ftp certs
(@'Ninos' is there a reason for 30 days or could it be 31 days too? If yes a restart once per month would be enought - thx for your help!)
Jipp, without parameter --force-renew you can only renew certificates max 30 days before expiration
Ah ok, thx for the info.
You can use cerbot hook to automatically restart services when needed. Service are only restarted if SSL certificate has been really renewed
An example that I use for our youtrack service:
Got it? Please have a look at the certbot documentation. Also, don't forget that i-MSCP LetsEncrypt plugin allows you to pass additional arguements to the certbot commands. See the /var/www/imscp/gui/plugins/LetsEncrypt/config.php file