-
First, find your
curator.conf
file. For Ubuntu installations, this is located in/etc/apache2/sites-enabled
. For all other Linux distributions, this file is located in/etc/httpd/conf.d/curator.conf
. If you cannot find this file, you may have an old Curator installation. If so, downloadcurator.conf
here. - Upload your SSL certificate, key, and (optionally) chain files to the webserver. This can be done with a secure copy (SCP) client, such as FileZilla. Place these certificates in /etc/apache2/certs for Ubuntu, or /etc/httpd/certs, for all other Linux distributions.
-
Replace the references to SSLCertificateChainFile, SSLCertificateFile, and SSLCertificateKeyFile in the
curator.conf
to the location you uploaded them to in Step #2. -
Save the contents of the file and restart apache with the commands below:
-
Navigate to the HTTPS version of the link to your portal in your browser (i.e.
https://curatorexample.com
). You should see a lock icon appear in the URL bar after the site loads to indicate that it is successfully encrypted. If you don’t see the lock or if you get an error, check your certificate for invalid information, such as incorrect site name or missing Subject Alternative Names.
Debugging SSL
Having issues? It happens! SSL certificates can be uniquely challenging to implement. Here are a few debugging tips:-
Make sure the certificate and key match. Often these get mismatched. Your server will not start if they do not match.
If either of these commands errors, you may not have correctly formatted certificates. Make sure you acquired Apache/PEM
certificates:
-
The certificate chain file is important, but can cause issues. If your Curator server won’t start, try commenting out
the SSLCertificateChainFile line in
curator.conf
temporarily to ensure that the issue is not the chain file. -
Check Apache/HTTPD’s error log. This can be found in /var/log/apache2/error_log (Ubuntu) or /var/log/httpd/error_log
(All other distros). Also check
/var/www/curator_error.log
, if it exists. If the error message is not detailed enough, try increasing “LogLevel” to “debug” incurator.conf
. (Note: be sure to set this value back to “warn” after you are done!)
Notes on obtaining SSL certificates
- Curator uses “Apache” type certificates. These may be referred to as “OpenSSL” or PEM certificates as well.
- These certificates may in one big bundle, or separated into key, certificate, and chain files.
-
When installing key certificates, many providers require a key-passphrase.
Once installed on the Curator server and at rest, you may wish to remove this passphrase.
If the passphrase remains, it will be required anytime there is a restart of the web server.
STORE THE PASSPHRASE IN A SAFE PLACE. IF IT REMAINS ON THE KEY AND IS LOST YOU WILL HAVE TO GENERATE NEW CERTIFICATES.
To remove the passphrase, use this command.
SSL Protocols / Ciphers (Optional)
-
You may wish to update your SSL protocols and cipher suites. To do this, you’ll need a little more info about your
web server. Run the command below to get the Apache and OpenSSL versions:
-
The expected output will look something like this:
-
Take the information retrieved in the previous step and use it to fill out the form on this
SSL Certificate Generator site.
- Select Apache for “Server Software”
- Select Intermediate for “Mozilla Configuration”.
- Enter your Apache version
- Enter your OpenSSL version
-
Replace the appropriate areas in the
curator.conf
file with the SSLProtocol and SSLCipherSuite that was generated on the SSL Certificate Generator site. For example: - Have a server open to the internet? Qualys has a free tool to test the certificates, protocols/ciphers, and their security: https://www.ssllabs.com/ssltest/analyze.html