This guide will walk you through installing an SSL certificate using cPanel, covering both automatic installation via Let's Encrypt and manual installation methods. Additionally, we'll cover how to verify the installation status of your SSL certificate and set up a forced HTTPS redirection for your website.
Installing an SSL Certificate Using AutoSSL (Let's Encrypt)
AutoSSL is a feature in cPanel that automatically installs free SSL certificates from Let's Encrypt. Here’s how you can use it:
- Log in to your cPanel account.
- Navigate to the "Security" section and click on "SSL/TLS Status".
- In the SSL/TLS Status interface, locate the AutoSSL tab at the top of the page.
- Click on the "Run Manual SSL Check" button. This will initiate a scan for domains that need SSL certificates.
- Once the check is complete, you can see which domains are eligible for an SSL certificate and their current status.
- If there are any issues preventing AutoSSL from issuing certificates, they will be listed under "Failed Domains". You can click on each domain to view details and take corrective actions as needed.
Manually Installing an SSL Certificate in cPanel
If you prefer to manually install your own SSL certificate or if AutoSSL fails for some reason, follow these steps:
- Log in to your cPanel account.
- Navigate to the "Security" section and click on "Install an SSL Certificate on a Domain".
- In the Install an SSL Certificate interface, enter your certificate details:
- Certificate (CRT): Paste your SSL certificate here.
- Private Key (KEY): Paste your private key here. Ensure this is kept secure and not shared publicly.
- Certificate Authority Bundle (CA): Paste the intermediate certificates provided by your Certificate Authority here.
- Click on "Install" to complete the installation process.
Checking SSL Certificate Status in cPanel
To verify that your SSL certificate is installed and active, follow these steps:
- Log in to your cPanel account.
- Navigate to the "Security" section and click on "SSL/TLS Status".
- In the SSL/TLS Status interface, you can see a list of all installed certificates along with their expiration dates and domain names.
- Click on any certificate to view detailed information about it, including its status, issuer, and validity period.
Forcing HTTPS Redirection in cPanel
To ensure that all traffic to your website is encrypted using SSL, you can set up a forced HTTPS redirection:
- Log in to your cPanel account.
- Navigate to the "Security" section and click on "Redirects".
- In the Redirects interface, select "Permanent (301)" as the type of redirect.
- Enter your domain name without HTTPS in the "From:" field. For example:
http://example.com/ - Enter your domain name with HTTPS in the "To:" field. For example:
https://www.example.com/ - Select "Only redirect with www" or "Without www" based on your preference.
- Click on "Add" to create the redirection rule.
Troubleshooting Common SSL Errors
If you encounter issues during the installation of your SSL certificate, here are some common errors and their solutions:
- SSL Certificate not found: Ensure that all necessary files (Certificate, Private Key, CA Bundle) have been correctly uploaded and installed.
- Domain validation failed: Verify that your domain's DNS settings are correct and that the domain points to your server. Also, ensure there are no firewall rules blocking HTTP/HTTPS traffic.
- SSL Certificate expired: Renew your SSL certificate before it expires. You can do this manually or by using AutoSSL if you're using Let's Encrypt certificates.
- Mixed content warnings: Ensure that all resources (images, scripts, etc.) on your website are loaded over HTTPS to avoid mixed content issues.
If you continue to experience problems after trying these solutions, please contact Internetport support for further assistance.