Hi there!
I'm looking for a way to use Let's Encrypt to generate system certificates, for cPanel, Exim, Dovecot and Pure-FTP, every 60 days. Manually I can run:
My idea is create a bash script to override cert files and restart the services.
From /etc/letsencrypt/live/server.mydomain.com I can "cat/concat" files to:
and then restart the services everytime I update the certificates using a CRON entry.
The problem is: on /var/cpanel/ssl I have files like:
I believe the files are for a cPanel internal control.
Questions: my idea is correct, will work? The files above will be a problem after running my script? Can I broke cPanel or exim/dovecot/pureftp (considering I'll cat/concat files correctly).
Thank you!
I'm looking for a way to use Let's Encrypt to generate system certificates, for cPanel, Exim, Dovecot and Pure-FTP, every 60 days. Manually I can run:
Code:
/opt/letsencrypt/letsencrypt-auto --debug certonly -a webroot --agree-tos --webroot-path=/usr/local/apache/htdocs --renew-by-default -d server.mydomain.com
From /etc/letsencrypt/live/server.mydomain.com I can "cat/concat" files to:
Code:
/var/cpanel/ssl/cpanel/mycpanel.cabundle
/var/cpanel/ssl/cpanel/mycpanel.pem
...
/var/cpanel/ssl/ftp/myftpd-rsa-key.pem
/var/cpanel/ssl/ftp/myftpd-rsa.pem
/var/cpanel/ssl/ftp/pure-ftpd.pem
The problem is: on /var/cpanel/ssl I have files like:
Code:
-rw-r--r-- 1 root root 15 Jan 25 12:43 cpanel-CN
-rw-r--r-- 1 root root 2832 Jan 25 12:43 cpanel-CRTINFO
-rw-r--r-- 1 root root 15 Jan 25 12:43 cpanel-DOMAINS
-rw-r--r-- 1 root root 10 Jan 25 12:43 cpanel-NOT_AFTER
-rw-r--r-- 1 root root 1 Jan 25 12:43 cpanel-SIGNATURE_CHAIN_VERIFIED
-rw-r--r-- 1 root root 15 Jan 25 12:43 dovecot-CN
-rw-r--r-- 1 root root 2832 Jan 25 12:43 dovecot-CRTINFO
-rw-r--r-- 1 root root 15 Jan 25 12:43 dovecot-DOMAINS
-rw-r--r-- 1 root root 10 Jan 25 12:43 dovecot-NOT_AFTER
-rw-r--r-- 1 root root 1 Jan 25 12:43 dovecot-SIGNATURE_CHAIN_VERIFIED
-rw-r--r-- 1 root root 15 Jan 25 12:43 exim-CN
-rw-r--r-- 1 root root 2832 Jan 25 12:43 exim-CRTINFO
-rw-r--r-- 1 root root 15 Jan 25 12:43 exim-DOMAINS
-rw-r--r-- 1 root root 10 Jan 25 12:43 exim-NOT_AFTER
-rw-r--r-- 1 root root 1 Jan 25 12:43 exim-SIGNATURE_CHAIN_VERIFIED
-rw-r--r-- 1 root root 15 Jan 25 12:42 ftp-CN
-rw-r--r-- 1 root root 2832 Jan 25 12:42 ftp-CRTINFO
-rw-r--r-- 1 root root 15 Jan 25 12:42 ftp-DOMAINS
-rw-r--r-- 1 root root 10 Jan 25 12:42 ftp-NOT_AFTER
-rw-r--r-- 1 root root 1 Jan 25 12:42 ftp-SIGNATURE_CHAIN_VERIFIED
Questions: my idea is correct, will work? The files above will be a problem after running my script? Can I broke cPanel or exim/dovecot/pureftp (considering I'll cat/concat files correctly).
Thank you!
Last edited by a moderator: