This tutorial show you how to install Let’s Encrypt on Centos 6 and begin issuing SSL certificates.

What is LetsEncrypt?

Let’s Encrypt is a certficiate authority (CA) which enables you to issue free SSL certificates on your web server.

In other words, Let’s Encrypt is responsible for generating and signing SSL certificates that you can implement to securely provide content to your visitors.

An SSL certificate on your website provides your user with the trust and confidence that the website they are visiting is secure.

By encrypting information sent between you and the server hosting the website, SSL certificates prevent man-in-the-middle attacks and protect users from having their information intercepted by hackers.

Websites which provide a method of payment are required to serve pages using a secure connection.

Installation Difficulty

Difficulty: Medium

Installation Time: 15 Minutes

Requirements

There are a short list of requirements that you must meet to install Lets Encrypt, however they should be familiar to anybody about to begin this installation.

  • A Linux server running Centos 6
  • SSH Access
  • A command line program such as PuTTY
  • A domain name and configured virtual host

How to install Python on Centos 6

Let’s Encrypt requires Python in order to function so, firstly, we need to check if our centos server already has Python installed.

Note: some centos distributions come with Python already installed.

To check, run the following command:

python --version

If the command does not return a Python version, we need to run the following Python installation.

# Install the Epel Repository
yum install epel-release mod_ssl
# Install the IUS Repository
rpm -ivh https://rhel6.iuscommunity.org/ius-release.rpm
# Install Python and Git
yum --enablerepo=ius install git python27 python27-devel python27-pip python27- setuptools python27-virtualenv -y

How to install Let’s Encrypt on Centos 6

Secondly, we need to download the Let’s Encrypt files from their GitHub repository. To do this, we need to install Git if it isn’t already available.

yum install git

Next, download the Let’s Encrypt files using GitHub.

# Download Lets Encrypt
git clone https://github.com/letsencrypt/letsencrypt

How to issue SSL Certificates using Let’s Encrypt on Centos 6

Let’s Encrypt is installed and we have letsencrypt-auto in our installation directory, ready for us to start issuing and renewing SSL certificates.

To install our first certificate, run letsencrypt-auto in the command line.

./letsencrypt-auto

This will begin the Let’s Encrypt client and allow you to input your website details to begin generating an SSL certificate.

Let’s Encrypt can also accept arguments to speed up or automate the process of creating SSL certificates, as demonstrated below:

./letsencrypt-auto -d devblg.co.uk -d www.devblg.co.uk

Conclusion

Now that you have learnt how to install Let’s Encrypt on Centos 6, we hope you will enjoy more of our website development content.

To conclude, you now have a centos web server with Let’s Encrypt installed and ready to begin issuing SSL certificates. If you enjoyed this tutorial and would like to explore more, visit our Linux Tutorials section.