May 12, 2021

How to Install Let’s Encrypt SSL Certificate on CentOS 7 Running Apache Web Server

In this article we will guide you how to configure Let’s Encrypt SSL Certificate on your Centos 7 Web-Server.

In-order to Install Let’s Encrypt, we should configure the following dependencies as follows:-

  • Epel-release.
  • Mod_SSL.
  • Python-certbot-apache.

Installing dependent modules

yum install epel-release mod_ssl

Downloading the Let’s Encrypt client

yum install python-certbot-apache

Configuring SSL Certificate

Certbox is used to manage the SSL Certificate, it also used to generate the new certificate for any domain.

In this case SSL certificate will be generated for, but it will not for any sub-domain.

certbot --apache -d

Therefore, if you want to generate multiple domains and subdomains run the following command.

certbot --apache -d -d

Configuring auto renewal of the certificate

In-order to renew the certificate automatically, then create a cron job for automatically renewal.

crontab -e
0 0 * * 1 /usr/bin/certbot renew >> /var/log/sslrenew.log

This cron job will be scheduled automatically every Monday Midnight.

Vedant Singh

Linux System Administrator | Entrepreneur | Founder Techmion. I have started my career as a Linux system Administrator after that quit my job to start something new that excites me and started a Tech Company in order to provide the best technology to my clients. My Company website link: For Bulk, SMS-Marketing follows the link :

View all posts by Vedant Singh →

Leave a Reply

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