Free SSL ???
Yes , you heard correct โฆ.Now you can have Free SSL
Prerequisites : WSL2 , Static IP , Node JS
What is SSL ?
SSL (Secure Sockets Layer) and its successor, TLS (Transport Layer Security), are protocols for establishing authenticated and encrypted links between networked computers.
An SSL certificate is a type of digital certificate that provides authentication for a website and enables an encrypted connection. communicates to the client that the web service host demonstrated ownership of the domain to the certificate authority at the time of certificate issuance
HTTP : Hyper Text Transfer Protocol ๐
Port : 80
HTTPS : Hyper Text Transfer Protocol Security ๐
Port : 443
How to Setup SSL
- Create a New Folder Name : SSL
- Open the Folder In VS Code
- Create app.js (Source Code)
4. Make sure you Installed Node and Npm In Your System
5. Connect your Local IP to Static IP and Port Foreword to Port 80 and 443
6.Type this command : npm i nodemon-g โ save -dev
7. Now check both Local and Static IP both are on same page
Local Network with HTTP
Local Network on HTTPS
Static IP on HTTP
Static IP on HTTPS
8. Type this Command in your Terminal
Enter in Root :
sudo su
apt install certbox (In Ubuntu Terminal)
9.Type this Command in your Terminal
certbot certonly โ manual โ preferred-challenges=dns
10. Please enter in your domain name(s) (comma and/or space separated) (Enter โcโ
to cancel): Add your Domain Nam
11.Are you OK with your IP being logged?
- โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ -
(Y)es/(N)o: Y
12. Please deploy a DNS TXT record under the name
_acme-challenge.suhail.codes with the following value
And Add Key Value too
Open your Hosting provider and Add _acme-challenge in TXT Record
13. Move to cd /etc/letsencrypt/live/yourDomain/
14. Copy cert.pem and privkey.pem and Paste to SSL Folder
15. Run this command : node app.js
15. Now Access your Domain with HTTPS
Example : https://suhail.codes
Note : You Can See your domain web page ..Until the Server is ON
If the Server is OFF . You Cannot Access to that page