1. Home
  2. Blog
  3. How to Install SSL on cPanel: Step-by-Step HTTPS Guide

How to Install SSL on cPanel: Step-by-Step HTTPS Guide

Learn how to install SSL on cPanel, force HTTPS redirects, and fix mixed content issues without relying on a technician.

To install SSL on cPanel, open the SSL/TLS Status section, run AutoSSL, and wait for the free certificate to be issued for your domain and the www version. Then force the redirect to HTTPS and fix any resource still loaded over http.

It sounds like a lot, but the process takes only a few minutes in most cases. In this guide, you'll see how to install SSL on cPanel from start to finish, with a testing checklist and a table of common errors. 🔒

Why install SSL on your site (and what it means for SEO)

The SSL certificate encrypts the connection between the visitor and your site. It's what displays the padlock in the browser and changes the address from http:// to https://.

For visitors, the effect is immediate: without SSL, browsers often show a "Not secure" warning, especially on pages with forms, login, or checkout. Many people simply close the tab.

For search engines, HTTPS is generally seen as a positive signal of quality and security. Don't expect ranking miracles just from the padlock, but going without it can put your site at a disadvantage and give an unprofessional impression.

What you need before you start

Check these points before changing any settings:

  • Domain pointing to your hosting: DNS must resolve to the server where the site is hosted. Without this, certificate validation fails.
  • cPanel access: you need the login for your hosting account.
  • Recent backup: we'll be changing redirects and possibly the database. Keep a copy handy.
  • A plan that includes SSL: with cPanel hosting with free SSL, the certificate is already part of the plan. HostMF's Website Hosting, for example, includes free SSL, email, and unlimited traffic.

How to install SSL on cPanel step by step

The most common path is AutoSSL, a cPanel feature that issues and automatically renews free certificates. Only use a certificate bought elsewhere if you have a specific reason. The steps below cover both scenarios.

Step 1: Log in to cPanel and find the SSL/TLS section

Log in to cPanel and use the search bar to look for SSL/TLS Status (in some versions, the feature may be listed under a slightly different name). This feature lists all domains and subdomains in the account and shows the status of each one: with a valid certificate, without a certificate, or with an error.

Domains with a green padlock are already protected. Those showing a red padlock or a warning need attention.

Step 2: Enable free SSL in cPanel (AutoSSL)

This is where free SSL on cPanel comes in:

  1. On the SSL/TLS Status page, select the domains that don't have a certificate yet (the main domain and the www version).
  2. Click Run AutoSSL.
  3. Wait a few minutes and refresh the page.
  4. Confirm that the padlock is green for each domain.

If a domain still shows an error, the cause is almost always DNS: the domain or www doesn't point to the server, or an old record is interfering. Fix the pointing, wait for propagation, and run AutoSSL again. If it gets stuck, hosting support can review the AutoSSL log with you.

Step 3: Install your own certificate, if needed

A certificate bought elsewhere is usually needed in specific situations, such as an extended validation requirement or company policy. The installation process works like this:

  1. In cPanel, open SSL/TLS and go to Manage SSL Sites.
  2. Choose the domain.
  3. Paste the certificate (CRT), the private key (KEY), and the certificate authority bundle (CABUNDLE).
  4. Click install.

The private key must be the same one used to generate the certificate request. If it isn't, the installation will fail.

How to enable HTTPS on your site and force the redirect

Having the certificate installed doesn't mean the site opens over HTTPS automatically. Anyone who types `` may still land on the old version. To enable HTTPS on your site for good, force the redirect.

The simplest way is through cPanel: open Domains and enable the Force HTTPS Redirect option for the domain. If your version doesn't have this option, use .htaccess.

Back up your .htaccess before editing. A typo can take your site offline.

In File Manager, open the .htaccess file in the public_html folder and add the following at the top:

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

The 301 code tells browsers and search engines that the change is permanent, which can help preserve SEO for your pages. If you use WordPress, it's best to place this rule above the # BEGIN WordPress block.

How to fix mixed content after enabling HTTPS

Mixed content happens when the page loads over HTTPS but some resource (an image, script, CSS file, or font) is still loaded from `` . The browser may block the item or remove the padlock.

How to identify it:

  1. Open the site and press F12 to open the browser's developer tools.
  2. Go to the Console tab.
  3. Look for "Mixed Content" messages pointing to the problematic resource address.

How to fix it:

  • In a static HTML site: replace http:// with https:// in links to images, scripts, and styles, or use relative paths.
  • In a theme or plugin: look for hardcoded http URLs in the theme files and update them.
  • In WordPress: under Settings > General, change the WordPress Address and Site Address to `` . Then replace the old URLs stored in the database with a search-and-replace plugin, always with a backup made first.

After fixing the issues, clear the site and browser cache before testing again.

How to test whether your hosting SSL certificate is working

A working hosting SSL certificate should pass this quick check:

  • The padlock appears in the browser address bar.
  • seudominio.com.br redirects to ``.
  • The www and non-www versions both open over HTTPS.
  • Internal pages, including cart and login, also show the padlock.
  • The console shows no mixed content errors.
  • The HTTPS address has been added to Google Search Console, and the sitemap has been updated with the new URLs.

Also test on your phone and in a private (incognito) window to avoid cached results.

Common errors and how to fix them

Problem Likely cause What to do
AutoSSL fails Domain or www not pointing correctly to the server Fix the DNS, wait for propagation, and run AutoSSL again
Site still shows "not secure" Mixed content or old cache Check the console, fix the URLs, and clear the cache
Redirect loop Duplicate rule in .htaccess, plugin, or proxy forcing HTTPS Keep only one active redirect rule
Expired certificate Automatic renewal failed or your own certificate expired Run AutoSSL or install the renewed certificate
Domain name error on the certificate Certificate doesn't cover www or the subdomain Issue the certificate including all variations

If you've followed everything and the problem persists, contact 24/7 support (available in English and Portuguese) instead of troubleshooting in the dark. Customers with plans that include direct support usually resolve this much faster.

Hosting with SSL included: what to check when buying

If you're still choosing where to host, look at a few SSL-related details:

  • Certificate included in the plan, with no extra charge.
  • Automatic renewal, so your site doesn't risk going down with an expired certificate.
  • cPanel with AutoSSL active.
  • Support that really helps when certificate issuance gets stuck.

HostMF's Website Hosting, for example, starts at R$ 11.90/month (Brazilian reais), with cPanel, free SSL, email, and unlimited traffic. For projects that need more control, such as configuring the server your own way, HostMF also offers Windows and Linux VPS plans with root or administrator access.

Next step

The process is short: enable AutoSSL, force HTTPS, fix mixed content, and test. Following this order keeps your site protected and ready to be indexed at the right address.

If you want cPanel hosting with free SSL and support in English and Portuguese, check HostMF's plans on the website or contact the team with your questions. 🚀

Need a server to put this into practice?

Windows and Linux VPS with instant activation, NVMe SSD and 24/7 support.

View VPS plans
Cookies

By using this site, you automatically agree that we use cookies. For what?

I agree