โ† Back to list

๐Ÿ” 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.

RAGHVENDRA TYAGI โ™พ๏ธ ยท 2026-02-13 12:13 ยท 0 claps ยท 2.2 min read
#ssl-certificate #lets-encrypt #certification #certbot #free-certification
Open on Medium โ†—

๐Ÿ” 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