To install a Namecheap SSL certificate on Hostinger shared hosting, generate a CSR and private key on your own computer and activate the certificate at Namecheap. Once it is validated, import the certificate, key and CA bundle in hPanel. You need this route when Hostinger’s free Let’s Encrypt certificate is not enough, for example for an OV certificate, a warranty-backed Sectigo certificate or a wildcard you already bought.
Quick answer: Create the key and CSR locally with OpenSSL, let Namecheap issue the certificate, and paste the three files into hPanel’s custom SSL form.
- Generate a private key and CSR with
openssl req. - Activate the certificate in Namecheap and paste in the CSR.
- Pass domain validation, ideally with the DNS CNAME method.
- Download the certificate and CA bundle from Namecheap.
- In hPanel, remove the current certificate and import the CRT, KEY and CABUNDLE.
- Check the chain with
openssl s_clientand turn on Force HTTPS.
In this guide
- Before You Start
- Step 1: Generate the Private Key and CSR
- Step 2: Activate the Certificate in Namecheap
- Step 3: Pass Domain Control Validation (DCV)
- Step 4: Download and Prepare the Certificate Files
- Step 5: Install the Custom SSL in Hostinger hPanel
- Step 6: Verify the Certificate Chain and Force HTTPS
- If It Still Doesn’t Work
- Frequently Asked Questions
- Next Steps

Before You Start
- Access: your Namecheap account with the purchased certificate, your Hostinger hPanel login, and a terminal with OpenSSL (built into macOS and Linux; on Windows use WSL or Git Bash).
- DNS: the domain must already point to Hostinger, through nameservers or an A record. If it doesn’t yet, see how to point Namecheap DNS to Hostinger without breaking email.
- Site type: custom SSL works for PHP, HTML, WordPress and similar sites. Hostinger does not support it on sites built with its AI website builder.
- Protect the private key: the
.keyfile you create in Step 1 never goes to Namecheap. Store a copy somewhere safe; if you lose it, you have to reissue the certificate. - Expect a short HTTPS gap: hPanel makes you remove the existing certificate before importing a new one. Have all three files ready before you remove it, and do it at a quiet time.
- Time: about 30 to 60 minutes. Domain validation usually completes within minutes of the DNS record appearing, but can take longer.
Step 1: Generate the Private Key and CSR
A CSR (Certificate Signing Request) is the file you give the certificate authority; it contains your domain and your public key. Generate it with a 2048-bit RSA private key on your own computer rather than with a web-based generator, so the private key never leaves your machine.
Run this in your local terminal, in the folder where you want to keep the files:
openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.csrOpenSSL will ask for a few details. Here’s what to enter:
- Country Name (2 letter code): Your two-letter country code (like
US,GB, orCA). - State or Province Name: Spelled out completely (e.g.,
California). - Locality Name: Your city (e.g.,
San Francisco). - Organization Name: Your legal company name or personal name.
- Organizational Unit Name: Press Enter to leave blank; CAs no longer include this field in certificates.
- Common Name: The exact domain to secure. Use
example.comfor a single domain, or*.example.comfor a Wildcard SSL. - Email Address: An admin contact email.
- A challenge password: Leave this completely blank—just press Enter.
You now have two files: example.com.key (your private key, keep it secret) and example.com.csr (the request you submit to Namecheap).
Step 2: Activate the Certificate in Namecheap
With the CSR ready, open your Namecheap account:
- Open SSL Certificates from the Namecheap sidebar.
- Locate your certificate and click Activate.
- Open
example.com.csrin your editor or runcat example.com.csrin terminal. - Copy the whole block, including the
-----BEGIN CERTIFICATE REQUEST-----and-----END CERTIFICATE REQUEST-----lines. - Paste it into Namecheap’s CSR input. Namecheap will parse the domain and organization details automatically.
- If you are asked for a web server type, choose the Apache / Nginx / cPanel / other option. That delivers the certificate in PEM format, which is what Hostinger’s importer expects.
Step 3: Pass Domain Control Validation (DCV)
Namecheap’s certificate authority, Sectigo, will not issue the certificate until you prove you control the domain. You get three validation options:
- DNS CNAME record: the most reliable method, and it works even if your site isn’t live yet.
- HTTP-based validation: a
.txtfile placed under/.well-known/pki-validation/in your web root (not available for wildcard certificates). - Email validation: a confirmation email sent to a standard address such as
admin@example.com.
The DNS CNAME method is the easiest to get right, because it does not depend on your website or mailboxes. Add the record Namecheap gives you at whichever DNS host is active for your domain (Namecheap Advanced DNS or Hostinger’s DNS Zone Editor):
| Type | Host | Value | TTL |
|---|---|---|---|
| CNAME Record | The _c… name Namecheap shows, without your domain on the end |
The target value Namecheap shows | Automatic |
Wait a few minutes, then check from your local terminal that the record is live (use your own _c… name):
dig +short CNAME _c123456789abcdef.example.comThe command should print the target value Namecheap gave you. Once Sectigo’s automated check sees the record, the certificate is issued, Namecheap marks it as active, and you can download the signed files as a ZIP archive.
Step 4: Download and Prepare the Certificate Files
Unzip the archive from Namecheap or the Sectigo email. Inside you will find:
example_com.crt(Your main domain certificate)example_com.ca-bundle(The root and intermediate CA chain combined)- Or separate intermediate
.crtfiles instead of one bundle (the exact names depend on which Sectigo chain issued your certificate)
If you received separate intermediate files instead of a combined bundle, join them in your terminal. Start with the CA that signed your certificate and move up toward the root; the root certificate itself can be left out. Replace the two placeholder names with your files:
cat issuing-intermediate.crt next-intermediate.crt > example_com.ca-bundleYou need three files for the next step: example_com.crt, example_com.ca-bundle and the example.com.key file from Step 1.
Step 5: Install the Custom SSL in Hostinger hPanel
Now load everything into Hostinger:
- Log in to Hostinger hPanel.
- Go to Websites and click Manage on your domain.
- In the sidebar, head to Security > SSL (or search for SSL).
- If the domain already has a certificate installed (for example Hostinger’s free one), click the three dots next to it and hit Uninstall.
- Click Import SSL (some hPanel versions call it Install custom SSL) and select the domain or subdomain from the dropdown.
You’ll see three text fields: Certificate (CRT), Private Key (KEY), and Certificate Authority Bundle (CABUNDLE). Open each file in a plain text editor and paste it into its matching box:
- Certificate (CRT): The full text of
example_com.crt(including the BEGIN/END lines). - Private Key (KEY): The full text of your
example.com.key. - Certificate Authority Bundle (CABUNDLE): The entire contents of
example_com.ca-bundle.
Click Install SSL. The import fails if the private key does not match the certificate. Otherwise the certificate is installed, though Hostinger notes it can take a few hours to take effect everywhere.
Step 6: Verify the Certificate Chain and Force HTTPS
Do not rely on a desktop browser alone. Desktop browsers cache intermediate certificates and may show a padlock even when your chain is incomplete, while phones and API clients reject it.
Test the TLS handshake from your local terminal with OpenSSL:
openssl s_client -connect example.com:443 -servername example.comLook at the Certificate chain section of the output. You should see entry 0 (your domain) followed by at least one Sectigo intermediate, and the output should end with Verify return code: 0 (ok). Press Ctrl+C to exit.
To confirm the new certificate replaced the old one, print just its issuer and expiry date:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -issuer -enddateThe issuer line should name Sectigo, not Let’s Encrypt, and notAfter shows when you need to renew. You can also check redirects and response headers with curl:
curl -Iv https://example.comTo redirect all HTTP traffic to HTTPS, toggle Force HTTPS inside hPanel under Websites > Manage > Security > SSL. Or add this rewrite rule at the very top of the .htaccess file in public_html:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]If It Still Doesn’t Work
hPanel Says the Private Key Does Not Match
The CSR you gave Namecheap was created with a different private key than the one you pasted. Compare the two from your local terminal:
openssl x509 -noout -modulus -in example_com.crt | openssl md5
openssl rsa -noout -modulus -in example.com.key | openssl md5If the two hash strings differ, hPanel will keep rejecting the pair. Reissue the certificate in Namecheap with a CSR made from the key you have, or generate a fresh key and CSR and reissue.
The Site Is Trusted on Desktop but Not on Mobile
If iOS Safari or Android Chrome shows a certificate-not-trusted warning (NET::ERR_CERT_AUTHORITY_INVALID in Chrome) while desktop works, the CA bundle is missing or incomplete. Uninstall the certificate in hPanel and import it again with the full .ca-bundle contents. For deeper TLS settings, see the Mozilla SSL Configuration Generator and the OpenSSL documentation.
Domain Validation Never Completes
Check the DCV record with dig first; the most common mistake is typing the full domain into Namecheap’s Host field. Then check for CAA records, which list the certificate authorities allowed to issue for your domain. If they only allow Let’s Encrypt, Sectigo cannot issue. Our guide to CAA records in Namecheap DNS shows how to add Sectigo.
There Is No Import Button in hPanel
A certificate is already installed on that domain. Uninstall it first (Step 5, item 4), and the import option appears.
Frequently Asked Questions
Can I install a Namecheap Wildcard SSL on Hostinger?
Yes. Set *.example.com as the Common Name when generating your CSR. Once Namecheap issues the certificate, import the CRT, CA bundle and private key in hPanel. The importer installs it for the domain or subdomain you pick, so repeat the import with the same three files for each subdomain site. A wildcard covers first-level subdomains only (shop.example.com, not a.shop.example.com).
Why use a paid Namecheap SSL instead of Hostinger’s free Let’s Encrypt SSL?
Only when you need something Let’s Encrypt does not offer. Let’s Encrypt suits most blogs, shops and staging sites. Namecheap’s commercial certificates add warranty coverage, Organization or Extended Validation (OV/EV), or a wildcard you can also install on servers outside Hostinger.
Will my SSL certificate renew automatically on Hostinger?
No. Hostinger only auto-renews its own Let’s Encrypt certificates. For a third-party certificate, renew at Namecheap, generate a fresh CSR, pass validation again and import the new CRT and CA bundle in hPanel. Publicly trusted certificates are now limited to 200 days of validity (100 days from March 2027), so expect to reissue and re-import at least twice a year, even on a multi-year subscription.
Do I have to remove Hostinger’s free SSL before installing mine?
Yes. hPanel only lets you import a certificate for a domain that has none installed. Uninstall the free certificate, then import yours straight away to keep the HTTPS gap short. Have the CRT, KEY and CA bundle open in a text editor before you click Uninstall.
Next Steps
- Add a calendar reminder a few weeks before the
notAfterdate from Step 6, so you can reissue in time. - Store the private key and certificate files in a password manager or other secure place.
- Run the
openssl s_clientcheck again after each renewal.
If you also run the same certificate on a VPS, our guide to install a Namecheap SSL certificate on Nginx covers combining the CRT and CA bundle for Nginx.

