How to install ssl certificate letsencrypt with lighttpd on ubuntu 16.04

lighttpd_logo

In this tutorial we will show you how to install ssl certificate letsencrypt with lighttpd. For you dont know letsencrypt, letsencrypt it’s an alternative ssl certificate and we can use it for free for 3 months, but you can renew again the certificate before expired. The major benefit using ssl certificate is your connection will be encrypted to and from a site so it can’t read by any third-party.

Prerequisites

This article assumes you have at least basic knowledge of linux, know how to use the shell, root user or non-root user account with sudo privileges set up on your server.

Step 1 – Install letsencrypt

Before we install letencrypt we need to stop lighttpd webserver.

Create folder and download letsencrypt installation using git command

We will begin to create certificate using this command.

Note : you will be prompted to choose method, please choose standalone method, after that you can insert multiple domain/subdomain

Combine certificate file into ssl.pem

Generate Diffie Hellman Ephemeral Parameters, it will take some time

Step 2 – Configure lighttpd config

You can copy and paste the following below to folder /etc/lighttpd/conf-enabled/ and name it as yourdomain.conf

Note : Please change based on your folder location

Step 3 – Start lighttpd service

After we are done with the configuration , we need to start again the lighttpd service process using the command below

 

Conclusion

Congratulations, you have successfully install ssl certificate letsencrypt with lighttpd on ubuntu 16.04. Letsencrypt it’s free ssl certificate and widely used as alternative for paid ssl certificate.

You may also like...

Leave a Reply

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