Last Updated: December 30, 2020
·
14.97K
· denver

Create SSL Certificates for ISPConfig using Let's Encrypt

I encoutered some documentation issues regarding ISPConfig combined with Let's Encrypt.

This is what I ultimately found out to install SSL certificates in ISPConfig using the Let's Encrypt tooling.

Note, I'm using Apache but you should be able to change the commands for use with Nginx and other webservers.

Also, I'm assuming you already installed Let's Encrypt on your server. If not, see https://letsencrypt.readthedocs.org

NOTES

  • SSL Key is privkey.pem
  • SSL Request does not exist and is not needed (CSR)
  • SSL Certificate is cert.pem
  • SSL Bundle is chain.pem

Stop Apache

service apache2 stop

Create SSL Certificate

./letsencrypt-auto certonly

A) Use next 4 commands if you are creating a SSL certificate for your ISPConfig Dashboard panel

Backup original ISPConfig certificates

mkdir /usr/local/ispconfig/interface/ssl/originals
mv /usr/local/ispconfig/interface/ssl/isp* /usr/local/ispconfig/interface/ssl/originals/

Link new Let's Encrypt SSL certificates

ln -s /etc/letsencrypt/live/__DOMAIN__/fullchain.pem /usr/local/ispconfig/interface/ssl/ispserver.crt
ln -s /etc/letsencrypt/live/__DOMAIN__/privkey.pem /usr/local/ispconfig/interface/ssl/ispserver.key

B) If you are creating a SSL certificate for one of your websites...

ls /etc/letsencrypt/live/__DOMAIN__/

and copy/paste the contents of the certificates into the fields (found in the SSL tab) in ISPConfig.

And always fire up Apache again ;-)

service apache2 graceful