Securing Your ISPConfig 3 Installation With A Free Class1 SSL Certificate From StartSSL - Page 2
4 ISPConfig Interface (Apache2)If you use ISPConfig 3 with Apache, open /etc/apache2/sites-available/ispconfig.vhost... vi /etc/apache2/sites-available/ispconfig.vhost ... and add the line SSLCertificateChainFile /usr/local/ispconfig/interface/ssl/startssl.sub.class1.server.ca.crt to the # SSL Configuration section (please be aware that you have to re-add that line whenever you update ISPConfig!):
(Adjust this if you use a Class2 certificate.) Restart Apache afterwards: /etc/init.d/apache2 restart
5 ISPConfig Interface (nginx)On nginx, all you have to do is append the intermediate certificate to the ispserver.crt file (please adjust this if you use a Class2 certificate)... cat /usr/local/ispconfig/interface/ssl/startssl.sub.class1.server.ca.crt >> /usr/local/ispconfig/interface/ssl/ispserver.crt ... and reload nginx: /etc/init.d/nginx reload
6 PostfixFor Postfix, we make backups of /etc/postfix/smtpd.cert and /etc/postfix/smtpd.key and create symlinks to /usr/local/ispconfig/interface/ssl/ispserver.crt and /usr/local/ispconfig/interface/ssl/ispserver.key: cd /etc/postfix Next we add the smtpd_tls_CAfile directive to /etc/postfix/main.cf... postconf -e 'smtpd_tls_CAfile = /usr/local/ispconfig/interface/ssl/startssl.chain.class1.server.crt' (Please adjust this if you use a Class2 certificate.) ... and restart Postfix: /etc/init.d/postfix restart
7 DovecotOpen /etc/dovecot/dovecot.conf... vi /etc/dovecot/dovecot.conf ... and add the line ssl_ca_file = /usr/local/ispconfig/interface/ssl/startssl.chain.class1.server.crt (please be aware that you have to re-add that line whenever you update ISPConfig!):
(Adjust this if you use a Class2 certificate.) Restart Dovecot afterwards: /etc/init.d/dovecot restart
8 CourierCreate backups of /etc/courier/imapd.pem and /etc/courier/pop3d.pem... mv /etc/courier/imapd.pem /etc/courier/imapd.pem.bak ... and then symlink them to /usr/local/ispconfig/interface/ssl/ispserver.pem: ln -s /usr/local/ispconfig/interface/ssl/ispserver.pem /etc/courier/imapd.pem Restart Courier afterwards: /etc/init.d/courier-imap-ssl stop
9 PureFTPdCreate a backup of /etc/ssl/private/pure-ftpd.pem... cd /etc/ssl/private/ ... and create a symlink to /usr/local/ispconfig/interface/ssl/ispserver.pem: ln -s /usr/local/ispconfig/interface/ssl/ispserver.pem pure-ftpd.pem Restart PureFTPd afterwards: /etc/init.d/pure-ftpd-mysql restart
10 MonitMonit is not part of the "Perfect Server" setups for ISPConfig 3, but if you have it installed and use its web interface over https, here's how you can use the StartSSL certificate so that the certificate warnings go away. Open /etc/monit/monitrc... vi /etc/monit/monitrc ... and specify /usr/local/ispconfig/interface/ssl/ispserver.pem in the PEMFILE line, e.g. as follows:
Restart monit afterwards: /etc/init.d/monit restart
11 Links
About The Author![]() Falko Timme is the owner of
|




Recent comments
15 hours 47 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 5 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 22 hours ago
2 days 3 hours ago
2 days 5 hours ago