& Apache2: Create and use free public key certificates is a certificate authority that offers you free public key certificates. Here is a howto that explains the steps to be taken to create server certificate and how to use them with the Apache2 webserver.

1. Add the domain to your account

  1. Login in your account and add your domain (Domains > Add).
  2. Choose your (authority) email address (root@…, hostmaster@…, postmaster@…, admin@…, webmaster@…) should send the verification link to.
  3. Use the verification link to verify that you are the owner of the domain.

2. Create the certificate

Use the following commands to create your key and the certificate signing request files (thanks to this post):

#cd /etc/apache2/ssl
#sudo openssl req -newkey rsa:1024 -subj  / -nodes -keyout -out
#sudo chmod 600

After the two files are created proceed as follows:

  1. In your account add a new certificate (Server certificates > New).
  2. Past the content of the (certificate signing request) file into the textarea.
  3. Check “CommonName” on the next screen and click submit.
  4. Copy the generated server certificate and past it at the end of your (key) file

3. Configure apache2

Add the SSLEngine and SSLCertificateFile option to your virtual hosts configuration

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/

and restart the apache2 webserver:

#sudo /etc/init.d/apache2 force-reload

Leave a Reply

Your email address will not be published. Required fields are marked *