# How TLS Certificates, Chains and Private Keys Work Together

https://ferkesh.net/zh/knowledgebase/article/tls-certificate-chain-and-private-key

![Diagram linking Identify certificate names, Check issuer chain, Protect the private key and Test the deployed host.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-07.svg#tls-certificate-chain-and-private-key)

A site's leaf certificate identifies its hostnames and contains a public key. Intermediate certificates allow clients to validate the chain toward a trusted root. The matching private key stays with the service that terminates TLS.

## Check the part that matters

1. Inspect the certificate for the exact hostname, expiry and issuer. Identify whether the connection ends at the application server, a load balancer or a CDN.
2. Install the public leaf and the appropriate intermediate chain through the provider's supported configuration. Never paste the private key into a public checker, support topic or screenshot.
3. Verify deployed trust from a normal browser and a representative second client. A browser may already know an intermediate that a fresh client cannot find.

If the renewed certificate loads but trust fails, compare the deployed chain and virtual host. Keep renewal and replacement procedures scoped to the correct service.

## Related guides

- [How to Diagnose an HTTPS Certificate Warning](https://ferkesh.net/knowledgebase/article/https-certificate-warning)
- [When a Wildcard Certificate Covers Your Subdomains](https://ferkesh.net/knowledgebase/article/wildcard-certificate-coverage)
- [How to Issue a Website Certificate in Plesk SSL It!](https://ferkesh.net/knowledgebase/article/plesk-lets-encrypt-ssl)
- [SSL and Website Security category](https://ferkesh.net/knowledgebase/category/ssl-and-website-security)

## Official references

- [RFC 5280 on X.509 certificates](https://www.rfc-editor.org/rfc/rfc5280)
- [RFC 9525 on service identity in TLS](https://www.rfc-editor.org/rfc/rfc9525)

Ferkesh Hosting. Last reviewed November 26, 2026.
