Yeah, in this thread, this link:
http://evolvedigital.co.uk/how-to-get-letsencrypt-working-with-ispconfig-3/
solved everything.
When you have certs generated like me, start at point 8).
$ ls -lA /etc/letsencrypt/live/example.com/
total 0
lrwxrwxrwx 1 root root 49 Nov 11 10:27 cert.pem -> ../../archive/example.com/cert1.pem
lrwxrwxrwx 1 root root 50 Nov 11 10:27 chain.pem -> ../../archive/example.com/chain1.pem
lrwxrwxrwx 1 root root 54 Nov 11 10:27 fullchain.pem -> ../../archive/example.com/fullchain1.pem
lrwxrwxrwx 1 root root 52 Nov 11 10:27 privkey.pem -> ../../archive/example.com/privkey1.pem
-
In ISPConfig go to:
Websites -> example.com -> Domain
Check the SSL checkbox and Save
-
In ISPConfig go to:
Websites -> example.com -> SSL
Enter values in the State, Locality, Organisation, Organisation Unit, Country fields and then at the bottom of the page under SSL Action select Create Certificate and click Save.
You might have to wait a minute for ISPConfig to generate it’s own certificates but eventually you should be able to see them here:
$ ls -lA /var/www/example.com/ssl/
total 16
-rw-r--r-- 1 root root 1330 Nov 11 13:22 example.com.crt
-rw-r--r-- 1 root root 1119 Nov 11 13:22 example.com.csr
-r-------- 1 root root 1675 Nov 11 13:22 example.com.key
-r-------- 1 root root 1743 Nov 11 13:22 example.com.key.org
- The next step is to remove the ISPConfig certs and add the symlinks:
Use this:
$ mv /var/www/example.com/ssl/example.com.crt /var/www/example.com/ssl/example.com.crt.old
$ mv /var/www/example.com/ssl/example.com.key /var/www/example.com/ssl/example.com.key.old
$ ln -s /etc/letsencrypt/live/example.com/fullchain.pem /var/www/example.com/ssl/example.com.crt
$ ln -s /etc/letsencrypt/live/example.com/privkey.pem /var/www/example.com/ssl/example.com.key
$ ln -s /etc/letsencrypt/live/example.com/chain.pem /var/www/example.com/ssl/example.com.pem
The LetsEncrypt fullchain.pem certificate contains the domain specific cert AND the CA Root cert, i.e it contains the ‘full chain’.
Do not forget to update text input fields in ispconfig with example.com.crt and example.com.key contents.
SSL Key -> example.com.key file file contents.
SSL Certificate -> example.com.crt file contents.
SSL Request -> leave unchanged!
Do not forget to modify your default template for Apache conf files
/usr/local/ispconfig/server/conf/vhost.conf.master:
Backup and find mod_ssl part and modify with bellow changes:
....
<IfModule mod_ssl.c>
<tmpl_if name='ssl_enabled'>
SSLEngine on
SSLProtocol All -SSLv2 -SSLv3
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.crt
SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.key
SSLCertificateChainFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.pem
....
Thank you all for spending time.