Installing SSL Certificate on Domain in cPanel
Securing your website with a commercial SSL certificate in cPanel provides trusted encryption for visitor data and improves search engine rankings. This guide covers SSL installation for a single domain using the cPanel web interface.
Prerequisites
Before starting, ensure you have:
-
- cPanel access for your hosting account
- SSL certificate files (.crt, .key, ca-bundle)
- Domain properly configured in cPanel
SSL Certificate Installation
Access cPanel:
https://yourdomain.com/cpanel
# or
https://your-server-ip/cpanel
Upload SSL Certificate:
-
- Login to cPanel
- Navigate to Security section
- Click SSL/TLS
- Click Manage SSL sites
- Select your domain from the dropdown
- Paste your certificate files:
- Certificate (CRT): Paste contents of your
.crtfile - Private Key (KEY): Paste contents of your
.keyfile - Certificate Authority Bundle (CABUNDLE): Paste contents of ca-bundle file
- Certificate (CRT): Paste contents of your
- Click Install Certificate
Alternative Installation Method
Using Certificate Upload:
-
- In cPanel, go to SSL/TLS
- Click Certificates (CRT)
- Under Upload a New Certificate, paste your certificate
- Click Save Certificate
- Go to Private Keys (KEY)
- Under Upload a New Private Key, paste your private key
- Click Save Private Key
- Return to Manage SSL sites
- Select certificate and key from dropdowns
- Add CA Bundle if required
- Click Install Certificate
Enable SSL for Website
Force HTTPS Redirect:
-
- In cPanel, go to Domains section
- Click Redirects
- Select redirect type: Permanent (301)
- Choose domain from dropdown
- Leave path blank (/)
- In redirect URL enter:
https://yourdomain.com/ - Check Wild Card Redirect
- Click Add
Alternative Redirect Method:
-
- Go to File Manager
- Navigate to your domain’s public_html folder
- Edit
.htaccessfile (create if doesn’t exist) - Add these lines at the top:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
-
- Save the file
Security Enhancements
Add Security Headers via .htaccess:
-
- Go to File Manager
- Edit your domain’s
.htaccessfile in public_html - Add these security headers:
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Content-Type-Options nosniff
Header always set X-Frame-Options SAMEORIGIN
Header always set X-XSS-Protection "1; mode=block"
</IfModule>
-
- Save the file
Verify SSL Installation
Check SSL Status in cPanel:
-
- Go to SSL/TLS → Manage SSL sites
- Your domain should show Certificate installed
- Check expiration date and issuer information
Testing
Verify your SSL installation by:
- Use our My SSL Pro SSL Checker tool at https://mysslpro.com/tools/ssl-certificate-url-checker
- Testing HTTPS access:
https://yourdomain.com - Checking certificate details in browser (click lock icon)
- Verifying redirect from HTTP to HTTPS
- Using online SSL checker tools for validation
Your domain now supports secure HTTPS connections with your commercial SSL certificate properly installed and configured in cPanel.

