Hosting Guides

How to Install an SSL Certificate in cPanel

When a visitor opens your website and sees a padlock in the browser address bar, they trust your site a little more. When they see a “Not Secure” warning instead, many of them leave before the page even finishes loading. That padlock comes from an SSL certificate, one of the first jobs after setting up hosting.

An SSL certificate encrypts the connection between your visitor’s browser and your server, so passwords, form entries, and payment details travel as scrambled data nobody in the middle can read. You do not need to be a server administrator to install one. If your host uses cPanel, the whole process happens through a friendly interface with no command line work. This guide shows how to install an SSL certificate in cPanel: generating a private key and a CSR, getting your certificate files, installing them, verifying the padlock, and redirecting traffic to HTTPS.

What Is an SSL Certificate and How Does It Work?

An SSL certificate is a small digital file that ties your domain name to a pair of cryptographic keys. One key is private and stays on your server. The other key is public and is shared with every visitor. When a browser connects, the two keys create an encrypted session, and the certificate proves the server really belongs to your domain.

There are three parts to every SSL installation. The certificate itself, usually a CRT file, proves your identity to browsers. The private key, a KEY file, is the secret half of the pair and must never be shared. The CA bundle, also called the CABUNDLE or certificate chain, links your certificate back to the trusted authority that issued it. cPanel asks for all three, and Autofill can fill most of them in.

Do You Need a Paid SSL Certificate or Is a Free One Enough?

Before you spend money, check what your hosting plan already includes. Most shared hosts now offer a free SSL certificate with every plan, usually through AutoSSL or Let’s Encrypt. AutoSSL is cPanel’s built in feature that issues and renews a free domain validated certificate automatically. The Let’s Encrypt authority issues free certificates valid for 90 days and renews them automatically when your host supports it.

A free certificate encrypts your site exactly the same way a paid one does. Visitors see the same padlock, and Google treats the site the same way. For a blog, a portfolio, or a small store, a free certificate is genuinely enough, and a paid certificate is often unnecessary. Pay only if you need a warranty, a wildcard certificate for unlimited subdomains, or an organisation validated certificate. The manual steps below cover buying a certificate from a separate provider.

What Do You Need Before You Start?

Installing an SSL certificate takes about fifteen minutes if you have everything ready first. Gather these items before you open cPanel.

  • Access to your cPanel account, with the username and password your host gave you.
  • Your domain name, already pointed at your hosting account and resolving to your server.
  • An email address you can access, because the certificate provider may send a validation email there.
  • A certificate purchased from a provider, or a decision to use your host’s free AutoSSL or Let’s Encrypt option instead.

How Do You Generate a Private Key and CSR in cPanel?

The first step is to create a Certificate Signing Request, usually called a CSR. A CSR is a block of encoded text that contains your domain name and organisation details. You send it to your certificate provider, and the provider uses it to create your certificate. The private key is created at the same time, and it stays on your server.

Log in to cPanel and find the Security section. Click SSL/TLS, then click Generate, view, or delete SSL certificate signing requests. On the form, fill in the details carefully. The key size should be 2048 bits, which is the current standard and the option cPanel selects as RSA 2048-bit. Choose your domain, enter your city, state, and country, and add your company name if you have one. Click Generate and cPanel creates the private key on the server and shows the CSR as text starting with BEGIN CERTIFICATE REQUEST. Copy the whole CSR text, including the BEGIN and END lines, and paste it into your provider’s order form in the next step. Never share your private key with anyone.

How Do You Submit the CSR and Get Your Certificate Files?

Open your certificate provider’s website and start the activation process for the certificate you bought. When the form asks for a CSR, paste the text you copied from cPanel. The provider reads the domain name from the CSR automatically, so double check it matches the domain you want to secure. A typo here means a certificate for the wrong domain, and you would have to start over.

Next, the provider asks you to prove that you control the domain. The fastest method is usually an email sent to an admin address on the domain, such as admin@yourdomain.com. Click the approval link and the certificate is issued within minutes. Some providers offer a DNS method instead, where you add a small TXT record to your domain. Once validation is complete, the provider sends you the certificate files by email or in your account dashboard: the main certificate file, with a .crt extension, and the CA bundle file.

How Do You Install the Certificate in cPanel?

With the certificate files in hand, go back to cPanel. Find the Security section again and click SSL/TLS Status or Manage SSL Sites. The label varies by cPanel version, but both routes lead to the same screen. If AutoSSL already shows as active, check it is working before installing anything manually. The cPanel SSL/TLS documentation explains the status page options.

On the Manage SSL Sites page, choose your domain from the dropdown list. Then click Autofill by Domain. This button tells cPanel to search the server for the certificate, private key, and CA bundle that match your domain and fill in the three fields automatically.

  • Certificate (CRT): paste the contents of your .crt file here, or let Autofill fill it in.
  • Private Key (KEY): the key created with your CSR. It should already be on the server.
  • Certificate Authority Bundle (CABUNDLE): paste the CA bundle text here. Without it, some browsers may show a warning even though the certificate is valid.

If Autofill does not find the files, paste each one manually. Open each file in a plain text editor and paste the full block, from the BEGIN to the END lines, into its matching field. When all three fields are filled, click Install Certificate. cPanel installs the certificate and shows a success message within a few seconds. To secure a subdomain as well, repeat the same process for it. For help setting one up first, see our guide to create a subdomain in cPanel and install WordPress on it. If your site is brand new, our web hosting guide explains how to pick a plan that includes free SSL from the start.

How Do You Verify the SSL Installation?

Do not assume the certificate is working just because cPanel showed a success message. Open your site using the https version of the address, for example https://yourdomain.com. You should see a padlock icon. Click it to confirm the domain name matches, the issuer is your provider, and the expiry date looks right.

For a deeper check, run your domain through a free SSL checker. A proper test checks the full certificate chain and the expiry date. If the test reports a chain problem, the CA bundle is the usual suspect, so go back to Manage SSL Sites and reinstall it. Also test on your phone, because caching can make a broken install look fine on your own computer.

How Do You Redirect HTTP to HTTPS?

Installing the certificate is only half the job. Until you redirect traffic, visitors who type your plain http address still reach the unsecured version of the site, and search engines may keep indexing both versions.

If your site runs on WordPress, change the site address in the dashboard. Go to Settings, then General, and change both the WordPress Address and the Site Address from http to https. Our guide explains how to redirect HTTP to HTTPS in WordPress without a plugin, including the .htaccess method below.

For any site on Apache hosting, add a redirect rule to the .htaccess file in your public_html folder. Open File Manager in cPanel, show hidden files, and edit .htaccess. Add these lines at the top of the file:

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

These three lines check whether the visitor arrived over plain HTTP and, if so, send them to the same page over HTTPS with a permanent 301 redirect. A 301 redirect tells search engines the HTTPS address is now the permanent home of the page. Save the file and test the plain http address in a fresh browser window. It should jump to https immediately. After the redirect is live, fix mixed content warnings by updating image URLs that still start with http. If you are about to launch a new site, run through our WordPress website launch checklist so SSL and redirects are confirmed first.

What Are the Common SSL Installation Problems and How Do You Fix Them?

The browser says the certificate is not trusted

This usually means the CA bundle is missing or wrong. Reinstall the certificate with the correct CABUNDLE pasted in, then test again. If the problem appears on only one device, update its browser or operating system.

The padlock shows but the site still loads over HTTP

The certificate is installed but the redirect is missing. Add the .htaccess rule from the redirect section above, or update the WordPress address settings to https. Clear your browser cache and test the plain http address again.

Visitors see a mixed content warning

Some images or scripts still load over http. Update the URLs to https in your content, theme settings, and widgets. If your hosting account is nearly full, check your usage with our guide to check disk usage in cPanel while you tidy things up.

Frequently Asked Questions

How long does it take to install an SSL certificate in cPanel?

About fifteen minutes if you already have the certificate files. Generating the CSR takes two minutes, validation takes a few minutes by email, and the installation itself takes seconds. With AutoSSL or Let’s Encrypt, it can finish in under five minutes.

Is a free SSL certificate from AutoSSL safe to use?

Yes. A free certificate from AutoSSL or Let’s Encrypt encrypts traffic with the same strength as a paid certificate, and browsers show the same padlock. The only differences are the lack of a warranty and the 90 day renewal cycle, which your host handles automatically.

Do I need a dedicated IP address for SSL in cPanel?

No. Modern servers use Server Name Indication, which lets many certificates share one IP address. A dedicated IP was required for SSL many years ago, but it is no longer needed on any current cPanel host.

What happens when my SSL certificate expires?

Visitors see a full page security warning and most of them leave immediately. Free certificates renew automatically if the domain still points at the server, so check the padlock monthly. Paid certificates need manual renewal, so set a reminder two weeks before the expiry date shown in your browser.

Last updated: November 2026.

Hostinger - Get 20% OFF

Habib ur Rehman

Hello! I'm the founder of VU Tech Geek. As a BSCS graduate and experienced WordPress professional, I'm passionate about technology and education. My Virtual University journey has given me valuable insights and knowledge, which I love to share with fellow students.… More »

Related Articles

Leave a Reply

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

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker