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:

root@localhost:~# 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:  

root@jumphost:~# 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.
 

root@bastionserver:~# 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:
 

root@jumpserver:~# 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:
 

root@jumpserver:~# 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:
 

root@jumpserver:~# 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 can i reset password / security code ?
    Viewed 2781 times since Wed, Oct 18, 2017
    Enable or Disable or force ssl for the web interface
    Viewed 2851 times since Thu, Jun 15, 2017
    cron for changing root passwords on servers periodically
    Viewed 3109 times since Thu, Jun 15, 2017
    How do i change the web url / uri of my installation?
    Viewed 2327 times since Thu, Jun 15, 2017
    How to find a server by its hostname, ip address, very quickly in ezsh shell
    Viewed 1851 times since Tue, Mar 27, 2018
    How to install ssl certs in jump server(secure connection) ?
    Viewed 2907 times since Mon, Apr 30, 2018
    How can i reset the default global key ?
    Viewed 1088 times since Fri, Jun 8, 2018
    Integrate Okta SSO with jumpserver
    Viewed 481 times since Fri, Aug 9, 2019
    configure jump server to use SSL for MySQL server 5.7 version
    Viewed 26140 times since Thu, Apr 12, 2018
    How to bypass the group menu in the backend shell and go directly to the entire server listing?
    Viewed 2306 times since Tue, Mar 27, 2018