Skip to content

Installing a manually issued SSL certificate on cPanel

Step-by-step for installing a third-party SSL certificate (DigiCert, GoDaddy, GlobalSign) on a cPanel account via the SSL/TLS interface, with the gotchas around the chain.

Even on cPanel servers running AutoSSL, some customers bring their own certificate — a commercial SAN cert from DigiCert, an EV cert their auditor requires, a wildcard issued by their parent organization. The interface is straightforward; the only place this goes wrong is the certificate chain and the AutoSSL coexistence.

What’s happening

Each cPanel account has its own SSL/TLS section under cPanel > Security > SSL/TLS. You upload a private key, a certificate, and a CA bundle (intermediate chain). cPanel writes these to /var/cpanel/ssl/installed/ and the relevant vhost is rebuilt to use them. AutoSSL, if enabled, will leave manually installed certificates alone for domains marked excluded — but will replace them on the next run if the exclusion is not set.

How to verify

whmapi1 fetch_ssl_certificates_for_user user=<user>
openssl x509 -in /var/cpanel/ssl/installed/certs/example_com.crt -noout -text | head -30
openssl s_client -connect example.com:443 -servername example.com < /dev/null 2>&1 | head -40
whmapi1 get_autossl_user_excluded_domains user=<user>
echo | openssl s_client -showcerts -connect example.com:443 2>/dev/null | grep -c "BEGIN CERTIFICATE"

The last line tells you how many certificates are being sent in the chain. A correct chain has the leaf and at least one intermediate (so 2+ certs); a missing intermediate is a 1.

The fix

  1. Get all three files: private key (.key), certificate (.crt), and CA bundle (.ca-bundle or .pem containing the intermediates). The issuing CA’s portal has these.
  2. In cPanel > SSL/TLS > Manage SSL Sites: select the domain, paste the certificate, paste the private key, paste the CA bundle. Do not concatenate them into one field — the interface expects them separate.
  3. Exclude the domain from AutoSSL in WHM > Manage AutoSSL > Manage Users if you do not want AutoSSL to replace this certificate on next run. Re-enable AutoSSL when the manual cert expires.
  4. Confirm the chain: openssl s_client -showcerts should show the leaf, the intermediate(s), and stop before the root. The root is not sent on the wire; clients have it.
  5. Confirm SNI: every modern client uses SNI. Test with openssl s_client -servername and the actual domain name, not the IP.
  6. Renewal calendar: manual certificates do not auto-renew. Put the expiry on the operator calendar with 30 days of lead time, and have the contact info for the customer’s CA on hand.

For environments where manual certificates and AutoSSL coexist across many accounts, Stack Harbor maintains the certificate inventory under WHM server management.