Install Free Third Party SSL (6 Months) On AWS EC2 Linux Server

Install Free Third Party SSL (6 Months) On AWS EC2 Linux Server

In this tutorial, I will explain how we can get free SSL for 6 months and apply on our AWS EC2 Linux instance via command line interface. Please make a note this not for lifetime, if you need it for many years then you can renew this SSL from respective providers.

Don't want to read? Watch video!


Get Free SSL For 6 Months:

Go to www.sslforfree.com and enter your website name.

Select "Manual Verification" option



Go to project root directory and create a directory ".well-known" if it does not already exist. Create another folder under ".well-known" directory named as "acme-challenge" if it does not already exist.

Download the "Download File #1" and "Download File #2" verification files by clicking on each link.

Now upload the above downloaded files to the "acme-challenge" directory.

Verify successful upload by visiting the links display in your dashboard.

If the files do not show random alphanumeric characters or shows an error then recheck that you are uploading in the correct place.

Click on "Download SSl Certificate Files" button to get all SSL certificate files in compressed format.


Extract all above certificates files and upload to root project directory then from there we will move files to proper locations.

  • sudo cp private.key /etc/httpd/conf/private.key
  • sudo cp certificate.crt /etc/httpd/conf/certificate.crt
  • sudo cp ca_bundle.crt /etc/httpd/conf/ca_bundle.crt  (Optional File)

Lets confirm if SSL already installed or not

  • cd /etc/httpd/conf.d
  • ls -l-a-bruket

If you can't see ssl.conf file that means no SSl installed yet.

Lets install SSL module

  • sudo yum install mod_ssl

Edit file ssl.conf 

  • sudo nano ssl.conf

Search keyword "SSLCertificateFile", "SSLCertificateKeyFile" and "SSLCertificateChainFile" and comment all out by putting # at starting of line.

Copy and paste below lines in ssl.conf file after commented line #SSLCertificateChainFile

  • SSLCertificateFile /etc/httpd/conf/certificate.crt
  • SSLCertificateKeyFile /etc/httpd/conf/private.key
  • SSLCertificateChainFile /etc/httpd/conf/ca_bundle.crt

Save and close the file ssl.conf

Now confirm if there any syntax error in ssl.conf file

  • apachectl -t

Restart apache server using command below

  • sudo systemctl restart httpd 


That's It! Now try to access your website with https://yourwebsite.tl

Happy Learning AWS Services!!!! :) Still Doubts? lets put your questions in below comment box! Thanks!
Install Free Third Party SSL (6 Months) On AWS EC2 Linux Server Install Free Third Party SSL (6 Months) On AWS EC2 Linux Server Reviewed by Web Technology Funda on 4:04:00 AM Rating: 5

No comments

Free! Free!Free! Subscribe to Get Free PHP (Magento) tutorial Update in Your Inbox!!! Hurry Up!!!