Free SSL certificates using Lets Encrypt.

 


How To Install And Configure Free SSL Certificate Using Let's Encrypt Bot For Dedicated Linux Apache Configured Web Server.

What is SSL?

SSL Stands for Secure Socket Layer which enables encryption -based internet connection protocol for providing privacy, secure authentication, integrity to internet connection. SSL eventually know to be the TLS which stands for Transportation layer security.

A website that implements SSL/TLS has "HTTPS" in its URL instead of "HTTP."

Lab Work :-

1. Create a Resource Group .


2.  Create a virtual-network into the resource group.


>> Create a web-subnet inside the azure-virtual-network which will contain the web-server.






3. Deploy the web-server into the web-subnet in azure-virtual-network.



4. Setup or Install Apache2 into your server.

>> Command to install Apache2 is "apt install apache2".


5. After Configuring Apache2 into the server you need to copy all the required files to /var/www/html directory.


>> command to start the Apache2 into your server is :- "systemctl start apache2" and 
 "systemctl enable apache2".

6. Allow HTTP and HTTPS port to the web-server in Networking tab.


>> Port _80 is for the HTTP and Port_443 is for HTTPS.
>> Then your website will be operational, and you can view it by making a Google request to the server's IP address.


>> But It is in "Not Secure" state, Lets sort it out.

7.  Create Dns Zones in Azure to map a custom Dns with your Website.






>> Add the name server to the manage dns section of your domain registar.
>> Your get free domain from  NameCheap.

>> Create records to enable SSL.


>> In IP address section provide the IP address of the server in which your website is up and running.

>> 
Then your website will be operational, and you can view it by making a Google request to the "your custom domain."


>> Now To Configure SSL. 
1. Install the certbot-repo  into your server using the command:- sudo add-apt-repository ppa:certbot/certbot.

2. Command to install the Python CertBot :- sudo apt install certbot python3-certbot-apache


>> Then specify the server details into the nano editor.
>> command to open the nano editor in the required directory is :-
sudo nano /etc/apache2/sites-available/<your-custom-domain>.conf

>> Enter the server details into the nano editor file and save the file With command ctrl+x and y.


>> Command to test the config file is saved properly  is :- sudo apache2ctl configtest.

if the status syntax is "OK " in that case your config the Free SSL certificate using Let's encrypt.


>>Obtaining the SSL certificate command is :- sudo certbot --apache
>> Configure other details as shown below.






>> >> Then your website will be operational, and you can view it by making a Google request to the "your custom domain. with SSL configured.


>> In case of any other error while configuring "Lets Encrypt Cert-Bot" Check out the blog by Digital Ocean

Additional Information :-
Some of the Top books for learning python for Automation and Bots construction .


Sibasish

I am a student pursuing Computer Science and Engineering at Silicon Institute of Technology. I am always eager to explore the world of computer Science and software development . Main areas of interest include Web-development, Machine Learning, and Cloud Computing.

Post a Comment

Previous Post Next Post