How to install free SSL with Let’s Encrypt?

You can automatically enable HTTPS on your website with EFF's Certbot, deploying Let's Encrypt certificates

Apache on CentOS/RHEL 7

To use Certbot, you must first  enable the EPEL repository

Note : If you are using RHEL on EC2, you can enable the optional channel by running:

[email protected]:~# yum -y install yum-utils ; yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional 

After doing this, you can install Certbot by running:  

[email protected]:~# sudo yum install python2-certbot-apache   

Apache on Ubuntu

 
On Ubuntu systems, the Certbot team maintains a  PPA . Once you add it to your list of repositories all you'll need to do is apt-get the following packages.
 

$ sudo apt-get update

$ sudo apt-get install software-properties-common

$ sudo add-apt-repository ppa:certbot/certbot

$ sudo apt-get update $ sudo apt-get install python-certbot-apache

 

Get Started

 
 
Running this command will get a certificate for you and have Certbot edit your Apache configuration automatically to serve it.
 

[email protected]:~# sudo certbot --apache

 
 If you're feeling more conservative and would like to make the changes to your Apache configuration by hand, you can use the   certonly    subcommand:
 

[email protected]:~# sudo certbot --apache certonly 

 
Automating renewal
 
Certbot can be configured to renew your certificates automatically before they expire. Since Let's Encrypt certificates last for 90 days, it's highly advisable to take advantage of this feature. You can test automatic renewal for your certificates by running this command:
 

[email protected]:~# sudo certbot renew --dry-run

 
If that appears to be working correctly, you can arrange for automatic renewal by adding a  cron job  or  systemd timer   which runs the following:
 

[email protected]:~# certbot renew 

 
More detailed information can be found in Certbot documentation
0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    How to pass environment variable through jump server?
    Viewed 749 times since Tue, Jul 17, 2018
    Intergrate OneLogin SSO with jumpserver
    Viewed 31 times since Wed, Aug 14, 2019
    Configure Nginx webserver on Jump server / Bastion host
    Viewed 6104 times since Fri, Nov 3, 2017
    Configuration and error log files to check for troubleshooting
    Viewed 3964 times since Thu, Jun 15, 2017
    How do i configure Ezeelogin to authenticate using Windows_AD(Pam-Ldap) in centos?
    Viewed 2822 times since Wed, Feb 7, 2018
    Setting in web panel when SSH Daemon is listening on non standard ports.
    Viewed 1532 times since Thu, Dec 21, 2017
    How to enable google 2FA (Two factor Authentication) in ezeelogin ?
    Viewed 3113 times since Mon, Oct 9, 2017
    How to configure Yubikey two factor authentication in ssh ?
    Viewed 4555 times since Thu, Jun 15, 2017
    How can i disable MySQL strict mode ?
    Viewed 912 times since Tue, Feb 12, 2019
    Can we map existing user group in ldap to ezeelogin as ezeelogin user group ?
    Viewed 3380 times since Mon, Sep 25, 2017