iServerSupport Talk to an engineer

How to Install an SSL Certificate on cPanel, Plesk, Apache and Nginx

Install an SSL certificate on cPanel, Plesk, Apache or Nginx, check the chain and key match, fix common errors and plan for shorter certificate lifetimes.

Key icon representing installing an SSL certificate on a web server

Installing an SSL certificate is one of those jobs that is five minutes when it works and an afternoon when it does not. The steps are simple. The failures come from small mismatches: a certificate paired with the wrong private key, a missing intermediate certificate that makes the site work on your laptop and fail on a customer's phone, or a certificate installed on the right server but for the wrong domain. This guide covers the four setups we see most, then the checks that catch those mistakes before visitors do.

What you need before you start

Whatever the platform, you will be working with the same three items. The private key is generated on your server and must never be shared. The certificate is the signed file the authority issues for your domain. The chain, often called the CA bundle or intermediate certificates, links your certificate to a root that browsers already trust.

If you are buying a certificate, you first create a certificate signing request, or CSR, from the private key:

openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.csr

Keep the .key file safe and submit only the .csr. On cPanel and Plesk you can generate the CSR from the panel instead. If you use a free certificate through AutoSSL or Let's Encrypt, the panel handles all of this for you and you can skip ahead.

Installing on cPanel and WHM

For an individual account, open the SSL/TLS area in cPanel and choose the option to manage SSL sites. Select the domain, then paste the certificate, the private key and the CA bundle into their boxes and save. If you generated the CSR in cPanel, the key is stored already and cPanel can fill it in for you.

From WHM you can install a certificate for any account using the Install an SSL Certificate on a Domain tool. Most hosting servers should also have AutoSSL enabled, which issues and renews free certificates automatically for domains that point at the server. If a domain fails AutoSSL, the cause is almost always DNS pointing elsewhere or a redirect blocking the validation file, so check those first.

Installing on Plesk

In Plesk, open Websites and Domains, choose the domain, then SSL/TLS Certificates. Add a certificate, upload or paste the certificate, the key and the CA certificate, and save. Then open Hosting Settings for the domain, select the new certificate and tick the option to redirect HTTP to HTTPS permanently. The Let's Encrypt extension can issue a free certificate from the same screen and renew it on its own.

A frequent Plesk mistake is installing the certificate but never selecting it in Hosting Settings, so the site keeps serving the old one.

Installing on Apache

On a server you manage directly, point the virtual host at the files. Use the full chain, meaning your certificate followed by the intermediates, in the main certificate file:

<VirtualHost *:443>
    ServerName example.com
    SSLEngine on
    SSLCertificateFile    /etc/ssl/certs/example.com-fullchain.crt
    SSLCertificateKeyFile /etc/ssl/private/example.com.key
</VirtualHost>

On current Apache versions the separate chain file directive is obsolete, so combine the certificate and intermediates into one file, with your certificate first. Test the configuration and reload:

apachectl configtest && systemctl reload apache2

On RPM-based systems, the service is httpd.

Installing on Nginx

Nginx expects the same full chain in a single file:

server {
    listen 443 ssl;
    server_name example.com;
    ssl_certificate     /etc/ssl/certs/example.com-fullchain.crt;
    ssl_certificate_key /etc/ssl/private/example.com.key;
}

Then run nginx -t && systemctl reload nginx. If you are setting up a free certificate for an application server, our guide to installing Let's Encrypt SSL on Nginx running Django or Flask covers the full process.

Check it before you announce it

Three quick checks find nearly every installation problem. First, confirm the certificate and the key belong together by comparing their moduli. The two outputs must be identical:

openssl x509 -noout -modulus -in example.com.crt | openssl md5
openssl rsa  -noout -modulus -in example.com.key | openssl md5

Second, test what the server actually presents, including the chain, from outside:

openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null

Look for the complete chain and a verification result of OK. Third, check the dates and names the certificate covers:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates -subject -ext subjectAltName

Common errors and what they mean

A browser that shows a warning only on some devices usually means the intermediate certificate is missing. Desktop browsers sometimes fetch it themselves, while phones and API clients do not, which is why the site looks fine to you. A mismatch between key and certificate shows up as the web server refusing to start, so check the error log. A name mismatch means the certificate does not cover the exact hostname, including the www version. Mixed content warnings, where the page loads but some images or scripts do not, are a site problem, not a certificate one: the page still requests resources over plain HTTP. For Java applications such as Jira, our guides to SSL with an Apache proxy and SSL with HAProxy cover a different setup.

Plan for shorter lifetimes

Certificate validity is shrinking. Under the industry's current schedule, certificates issued from 15 March 2026 can last at most 200 days, falling to 100 days from March 2027 and 47 days from March 2029, as summarized in this timeline of the SC-081v3 changes. Installing a certificate by hand once a year is already on its way out. The practical lesson is to automate renewal wherever you can, use panel tools such as AutoSSL, and monitor expiry dates so a failed renewal is caught weeks early. Make expiry checks part of your routine, such as the one in our Linux server maintenance checklist.

If you would rather have it done and verified for you, our SSL installation service installs and tests certificates on servers you control, and you can contact us with your platform and domains.

SSL installation service

Want the certificate installed and verified for you?

We install and troubleshoot SSL certificates, chains and web server configuration on servers you control, and set up renewal.