Menu Close

Tutorial – Adding SSL to this Lighttpd Blog

Today I am using SSL to add more securities in this Blog, and the SSL is provided by StartCom / StartSSL.
And now, let’s go trough the tutorial for installing SSL in a Lighttpd VPS
How to get Free SSL :

  1. Go to StartSSL
  2. Click the StartSSL Free
  3. Choose the Express Lane, fill the required data, and also make sure you are using valid phone number. We use the phone number for verification.

Preparing the Lighttpd VPS for SSL installation :

  1. Generate a CSR ( Certificate Signing Request ), and in this example we are using domain

    Create the Private Key :

    Create the CSR :

    You will be prompted to enter domain name and another data. At the “Common Name”, use your domain name, for example
    Next you will need to submit the csr key to the Certificate Authority, in this case StartCom/StartSSL. Once your order have been validated, you can download the certificate to be used for the Lighttpd VPS.
    Save the Certificate as “certificate.crt” and upload the Certificate to the /etc/lighttpd/ssl
  2. Preparing the Certificate
    If we use the encrypted Private Key, Lighttpd will ask the password when restarted. Therefore, we need to decrypt the key so the Lighttpd will not ask the password.
    Decrypting the Private Key :

    You will be prompted to enter the password for the Private Key.
    Create the .pem file :
  3. Configuring the Lighttpd.conf

    Add config section :
  4. Restart the Lighttpd, and all done

Leave a Reply

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