Press Ctrl+K to search anytime

How-to

How to Setup a Free SSL Certificate with Let's Encrypt

Why SSL Certificates are Mandatory for Modern SEO

Search engines like Google prioritize secure sites (HTTPS). Let's Encrypt provides automated, domain-validated SSL certificates at zero cost. By encrypting data in transit, SSL protects user login inputs and credit card structures from packet sniffing attacks on shared networks.

Apache htaccess Rewrite Code for Secure Redirects

Once your SSL is active, force HTTPS redirects by editing your .htaccess file. Place this block at the top of the file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Step-by-Step Instructions

1

Locate SSL/TLS Status in cPanel

Log in to cPanel, scroll to the Security section, and select SSL/TLS Status.

2

Select Domains for Issuance

Check the checkboxes next to the domains you wish to secure (e.g., yourdomain.com and www.yourdomain.com).

3

Run AutoSSL Process

Click the "Run AutoSSL" button. The server will contact Let's Encrypt, complete the HTTP-01 challenge, and provision the certificate.

4

Install Certbot on Linux (Alternative)

If using a raw cloud server, connect via SSH and install Certbot: "sudo apt install certbot python3-certbot-nginx".

5

Configure Auto-Renewal

Let's Encrypt certificates expire in 90 days. Set up a Linux cron job running "certbot renew" twice daily to handle auto-renewals.

Frequently Asked Questions

Yes. It provides the exact same 256-bit encryption standard as premium paid certificates.
Add rewrite directives in your public_html/.htaccess file to redirect all port 80 traffic to port 443.

Leave a Reply

Your email address will not be published. Required fields are marked *