Where does ISPConfig store its per-website SSL config files?

My ubuntu 12.04 webserver is dead. Unfortunately.

But I have a non-working backup in the form of a .tar.gz archive (one for / and one for /var partitions).

I have a new, 14.04 server with a clean ISPConfig install, and I would like to get the certificates from the old server back (generated by startssl, so I can't get new ones easily).

Where should I look in my backup to find these certificates?

2

1 Answer

That could be anywhere on your system. During setup of the SSL you provided a directory where to install them. If you followed a how-to the most likely directory would be /etc/apache2/ssl.

To make it easier to find the: the files are

ca.pem
private.key
sub.class1.server.ca.pem
ssl.crt

Beside that: your virtual host in /etc/apache2/sites-enabled/ will also have alterations to point to port 443 and have something like this:

SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM

SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/private.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem 

(this is all based on the assumption you used apache and the often used /etc/apache/ssl/ in how-to's).


General searching for files in a tar.gz:

tar tvfz {tarfile}.tar.gz /etc/apache2/ssl/ /etc/apache2/sites-*/

will find it. tar xvfz to extract files.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like