in Linux

Installing Certbot For Let’s Encrypt ssl in Ubuntu Server

Since the http2 becomes popular among the method of accessing a service, we need to make sure that we have encrypted service on our webserver.

One of the free facility to achieve more secure access over HTTP or https is using SSL and let’s encrypt is one of the tools that we can use.

This service is free, not commercial SSL. So it has its own cons like only valid for 3 months and needs to renew each that the valid time is over.

This is how we used certbot to get free SSL from lets encrypt. In this case, i am using Nginx webserver and Ubuntu 1

1. Installing Certboot repo

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update

2. Installing Certboot for nginx

sudo apt-get install certbot python-certbot-nginx

3. Generate your SSL for your nginx

certbot --nginx

Be aware that this method will automatically update your Nginx configuration to use SSL

4. Try to renew your SSL

sudo certbot renew --dry-run

5. Validate your SSL configuration

Go to this link to check how good your server configuration

https://www.ssllabs.com/ssltest/