๐ How to Generate and Install Free SSL Certificate Using Letโs Encrypt (Step-by-Step Guide)
If you want a completely free SSL certificate for your website without paying ZeroSSL or other providers, you can use Letโs Encrypt.
๐ How to Generate and Install Free SSL Certificate Using Letโs Encrypt (Step-by-Step Guide)

If you want a completely free SSL certificate for your website without paying ZeroSSL or other providers, you can use Letโs Encrypt.
This guide explains how to:
- Generate a free SSL certificate
- Verify using DNS (GoDaddy example)
- Install it manually in cPanel
- Fix common errors
๐ Why Use Letโs Encrypt?
- 100% Free
- Trusted by all browsers
- 90-day validity
- Renewable forever
๐ Step 1: Generate SSL Certificate Using Certbot
On your Linux machine, run:
โ STEP 1 โ Install Certbot (On Your Machine)
If using Ubuntu/Linux:
sudo apt update
sudo apt install certbot
If using Windows: Install WSL (Ubuntu) first, then run same commands.
sudo certbot certonly --manual --preferred-challenges dns -d raghvendra.com -d www.raghvendra.com
Certbot will ask you to create DNS TXT records.
It will show something like:
_acme-challenge.raghvendra.com
Value: ABC123
_acme-challenge.www.raghvendra.com
Value: XYZ789
๐ Step 2: Add DNS TXT Records in GoDaddy
Go to:
GoDaddy โ DNS Management
Add two TXT records:
Record 1
- Type: TXT
- Name:
_acme-challenge - Value:
ABC123
Record 2
- Type: TXT
- Name:
_acme-challenge.www - Value:
XYZ789
Save changes.
โณ Step 3: Verify DNS
Before pressing Enter in terminal, verify:
dig TXT _acme-challenge.raghvendra.com @ns17.domaincontrol.com
dig TXT _acme-challenge.www.raghvendra.com @ns17.domaincontrol.com
Each must show only one correct value.
If old values exist, delete them first.
โถ Step 4: Complete Certificate Generation
After DNS verification:
Press Enter in the terminal.
If successful, you will see:
Successfully received certificate.
Certificate files will be saved in:
/etc/letsencrypt/live/raghvendra.com/
You will see 4 important files:
cert.pem
chain.pem
fullchain.pem
privkey.pem
๐ Step 5: Install SSL in cPanel
Go to:
cPanel โ SSL/TLS โ Manage SSL Sites
You will see 4 important files:
cert.pem
chain.pem
fullchain.pem
privkey.pem
๐น What to Paste Where
Certificate (CRT)
Paste content of:
cat cert.pem
Private Key (KEY)
Paste content of:
cat privkey.pem
Certificate Authority Bundle (CABUNDLE)
Paste content of:
cat chain.pem
Click Install Certificate.
Your site is now HTTPS-enabled ๐
๐ Renewal (Important)
- Certificate valid for 90 days
- Must renew manually using same command
- You will need to repeat DNS verification
- Set reminder 70โ80 days after issue date.
๐จ Common Errors & Fixes
1๏ธโฃ Incorrect TXT Record Found
Cause: Old TXT records still exist
Fix: Delete all _acme-challenge records before retrying
2๏ธโฃ NXDOMAIN Error
Cause: Missing _acme-challenge.www record
Fix: Add separate TXT record for www
3๏ธโฃ Certificate Not Valid in cPanel
Cause: Wrong file pasted Fix:
- CRT โ cert.pem
- KEY โ privkey.pem
- CABUNDLE โ chain.pem
๐ Final Result
After successful installation:
- ๐ HTTPS enabled
- Free SSL
- Browser trusted
- Valid for 90 days
- Renewable forever
๐ฏ Conclusion
Using Letโs Encrypt, you can generate and install a completely free SSL certificate for your website without paying for premium plans. With proper DNS configuration and manual verification, the process is simple and reliable.
By following the steps above, you now know how to:
- Generate a free SSL certificate
- Validate using DNS challenge
- Install it correctly in cPanel
- Troubleshoot common errors
Secure websites build trust, improve SEO rankings, and protect user data โ and now you can do it for free.
๐ Follow for More Guides
If this guide helped you, make sure to follow for more such practical hosting, security, and DevOps .
๋ฉํ๋ฐ์ดํฐ
- post_id
- f55e21508017
- slug
- how-to-generate-and-install-free-ssl-certificate-using-lets-encrypt-step-by-step-guide-f55e21508017
- url
- https://medium.com/@Raghvendra_Tyagi/how-to-generate-and-install-free-ssl-certificate-using-lets-encrypt-step-by-step-guide-f55e21508017
- canonical_url
- https://medium.com/@Raghvendra_Tyagi/how-to-generate-and-install-free-ssl-certificate-using-lets-encrypt-step-by-step-guide-f55e21508017
- author_url
- https://medium.com/@Raghvendra_Tyagi
- status
- ok
- fetched_at
- 2026-08-06 03:46:33