Managing SSL Certificates in cPanel: A Quick Guide
3 mins read

Managing SSL Certificates in cPanel: A Quick Guide

An SSL certificate in cPanel is essential for securing your website, encrypting communication, and building trust with your visitors. With cPanel, managing SSL (Secure Sockets Layer) certificates and enabling HTTPS is a straightforward process.

Why Enable HTTPS?

  • Enhanced Security: Encrypts data between the server and the user’s browser.
  • SEO Benefits: Search engines like Google prioritize HTTPS-enabled websites.
  • Trustworthiness: A padlock icon in the browser signals a secure site.
  • Compliance: Necessary for secure payment processing and data protection.

Steps to Manage SSL Certificates in cPanel

1. Log into cPanel

  • Access your cPanel dashboard using the URL provided by your hosting provider, usually https://example.com/cpanel.
  • Enter your username and password.

2. Check for Existing SSL Certificates

  • Navigate to the SSL/TLS section in cPanel.
  • Under “Manage SSL Sites,” verify if your domain already has an SSL certificate installed.

3. Generate a Certificate Signing Request (CSR)

If you’re purchasing an SSL certificate from a third-party provider:

  1. Go to SSL/TLS > Generate a Certificate Signing Request (CSR).
  2. Enter your domain details:
    • Domain: The domain you want to secure.
    • City/State/Country: Your location details.
    • Company Name: Optional but recommended for business sites.
  3. Click Generate and copy the CSR code to submit to your SSL provider.

4. Install the SSL Certificate

  • If you’ve purchased a certificate:
    1. Obtain the SSL certificate files (usually .crt or .pem) from your provider.
    2. Go to SSL/TLS > Install and Manage SSL for your site.
    3. Select the domain to secure, paste the certificate and private key (provided during CSR generation), and click Install Certificate.
  • If your hosting provider offers free SSL (like Let’s Encrypt):
    1. Navigate to SSL/TLS Status or Let’s Encrypt SSL.
    2. Select the domain and click Run AutoSSL to automatically install a free certificate.

5. Force HTTPS for Your Website

Once the SSL is installed, you need to redirect all traffic to HTTPS:

  • Go to Domains in cPanel.
  • Toggle Force HTTPS Redirect to “On” for your domain.

Alternatively, you can edit the .htaccess file:

  1. Navigate to File Manager in cPanel.
  2. Open the .htaccess file in your domain’s root directory.
  3. Add the following code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

6. Verify the Installation

  • Open your website in a browser and check for the padlock icon in the address bar.
  • Test your SSL installation with tools to ensure proper setup.

Troubleshooting Common SSL Issues

  1. Mixed Content Warnings
    • Occur when some resources (e.g., images, scripts) load over HTTP.
    • Fix by updating URLs in your website’s code or using a plugin like Really Simple SSL (for WordPress).
  2. SSL Certificate Not Trusted
    • Ensure you installed the correct intermediate certificates provided by your SSL issuer.
  3. AutoSSL Not Working
    • Check if AutoSSL is enabled for your domain in cPanel. If issues persist, contact your hosting provider.

Maintaining Your SSL Certificate

  • Renewals: Most certificates last for a year. Set reminders for renewal or opt for AutoSSL for automatic updates.
  • Monitoring: Regularly test your SSL configuration to ensure it’s working and compliant with the latest standards.

Conclusion

Managing SSL certificates in cPanel is a simple yet crucial task for securing your website. By enabling HTTPS, you protect your visitors, improve your SEO rankings, and build trust. Follow this guide to ensure your site remains secure and compliant with modern web standards.