Protect your website with HTTPS

Chrome will show a Not Secure warning for all pages served over HTTP, regardless of whether or not the page contains sensitive input fields

Image for post
Image for post
Ref : codedaze.io
Image for post
Image for post

6 Reasons Why You Should Enable HTTPS On Your Website

Before we continuing this tutorial, assuming we have this configuration;

Image for post
Image for post
Fig: certbot.eff.org website

Step 1:

Step 2: Download dependencies

$ sudo yum -y install epel-release

Step 3: Install certbot

$ sudo yum -y install certbot

Step 4 (1.a) : specific domain

$ sudo certbot certonly --standalone -d your.websiteurl.com 

Step 4 (1.b) : for all subdomains / wildcard

$ sudo certbot certonly --manual --preferred-challenges=dns --agree-tos --server https://acme-v02.api.letsencrypt.org/directory -d *.websiteurl.com

Step 4 (2): Authenticate The Domain’s Ownership

Please deploy a DNS TXT record under the name
_acme-challenge.erpnext.xyz with the following value:J50GNXkhGmKCfn-0LQJcknVGtPEAQ_U_WajcLXgqWqo
Image for post
Image for post
Ref: GoDaddy DNS Settings
Image for post
Image for post
Fig: Successful installation of LetsEncrypt certficates

Step 5:

Image for post
Image for post
Fig: Successfully installed certificates

[only for AWS EC2 users]

at Step 4:

Image for post
Image for post
Fig: Unsuccessful/error installation for misconfiguration

Step 6: Take a backup of your certificates

$ cp -r /etc/letsencrypt/ /home/ec2-user/$ tar czf letsencrypt.tar.bz letsencrypt/

Step 7: To download letsencrypt.tar.bz archived file to the local directory: follow my blog

Step 8: Renew your domain certificates

$ sudo certbot renew --dry-run$ certbot renew

References:

Written by

CTO || Cloud and Distributed Systems Specialist

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store