Install a purchased SSL certificate in cPanel
Generate a private key and CSR in cPanel, order the certificate, then install the certificate and CA bundle under SSL/TLS and check the chain is complete.
- Beginner
- Linux VPS
- 4 min read
AutoSSL covers most sites for free, but some need a purchased certificate, for example an organisation-validated (OV) or extended-validation (EV) certificate, or one required by a payment partner. Installing it in cPanel takes three steps: create a key and CSR, get the certificate from the authority, and install it with the CA bundle. This guide walks through each step and how to check the result.
RunRacks does not sell cPanel licences or SSL certificates. You buy the certificate from a certificate authority or reseller of your choice.
Before you start
- A cPanel login for the account that owns the domain.
- The domain pointing at your RunRacks Linux VPS.
- An order with a certificate authority, ready for a CSR.
- Your organisation details if the certificate is OV or EV: legal name, city, state or region and country code.
Generate a private key and CSR
The CSR (certificate signing request) holds your domain and public key. The private key stays on the server.
- In cPanel, open Security » SSL/TLS.
- Under Certificate Signing Requests (CSR), click Generate, view, or delete SSL certificate signing requests.
- Leave Key set to generate a new 2,048-bit RSA key, unless your authority asks for something else.
- In Domains, enter the names the certificate must cover, one per line, for example
example.comandwww.example.com. - Fill in city, state, country, company and email. Use exact legal details for OV and EV orders.
- Click Generate.
cPanel shows the encoded CSR, starting with -----BEGIN CERTIFICATE REQUEST-----. Copy all of it, including the first and last lines, into your certificate order.
The matching private key is saved under Private Keys (KEY) on the SSL/TLS page.
Do not delete the private key while the order is in progress. A certificate only works with the key that made its CSR. If the key is lost, you must create a new CSR and ask the authority to reissue.
Complete validation with the authority
The certificate authority checks you control the domain, usually by email, a DNS TXT record or a file uploaded to the site. For a DNS check, add the record in cPanel Zone Editor. For a file check, upload it with File Manager to the exact path they give.
When validation is done, the authority sends:
- The certificate (CRT) for your domain.
- The CA bundle (intermediate certificates), sometimes called the chain.
Install the certificate
- Go back to Security » SSL/TLS.
- Under Install and Manage SSL for your site (HTTPS), click Manage SSL sites.
- Choose the domain from the Domain menu.
- Paste the certificate, from
-----BEGIN CERTIFICATE-----to-----END CERTIFICATE-----, into Certificate: (CRT). - Click Autofill by Certificate. cPanel finds the matching private key and often fetches the CA bundle automatically.
- If Certificate Authority Bundle: (CABUNDLE) is still empty, paste the intermediate certificates you received.
- Click Install Certificate.
cPanel installs the certificate and reloads the web server. A success message lists the domains it covers.
If AutoSSL is on, it will not replace a valid purchased certificate unless the AutoSSL option to replace non-AutoSSL certificates is enabled. Check that option in WHM if your certificate disappears later.
Check it works
Open the site in a browser and view the certificate details. Then check the chain from a terminal:
echo | openssl s_client -connect example.com:443 -servername example.com -showcerts 2>/dev/null | grep -E 's:|i:'You should see your domain certificate and at least one intermediate, each issued by the next. A single certificate with no intermediate means the CA bundle is missing.
You can also run the domain through an online SSL checker. It should report a complete chain and no warnings.
Troubleshooting
- "The certificate does not match any private key": the CSR was made elsewhere or the key was deleted. Generate a new CSR in cPanel and ask the authority to reissue.
- Works on desktop, fails on some phones: the CA bundle is missing. Reinstall with the intermediates in the CABUNDLE box.
- `www` shows a warning: the certificate does not include
www. Reissue with both names. - Old certificate still shown: NGINX or a CDN in front is caching it. Rebuild NGINX config or update the CDN, then reload.
- Certificate replaced by AutoSSL: turn off the AutoSSL option that replaces non-AutoSSL certificates and reinstall.
Next steps
- Redirect all visitors to HTTPS: force HTTPS for a domain in cPanel.
- Prefer free certificates for other sites: set up AutoSSL in cPanel & WHM.
Was this guide helpful?
Still stuck?
Ask RunRacks AI for a quick answer, or open a ticket and our team will take a look at your server.
Related guides
Control panels
How to install Plesk on a Linux VPS (AlmaLinux and Ubuntu)
Install Plesk on a fresh Linux VPS with the official one-click installer, apply your licence key and log in to the panel for the first time on port 8443.
- Beginner
- Linux VPS
- 8 min read
Control panels
CyberPanel: back up and restore a website
Create on-demand and scheduled website backups in CyberPanel, download the archives off the server, and restore a site from a backup when something breaks.
- Intermediate
- Linux VPS
- 6 min read
Control panels
Plesk Backup Manager: schedule backups and restore a site
Set up scheduled backups in Plesk Backup Manager, keep a copy off the server, and restore a single domain or subscription when something goes wrong.
- Intermediate
- Linux VPS
- 7 min read