Fix certificate chain, hostname or self-signed certificate errors
अपडेट: 1 दिस॰ 2026
यह गाइड अभी अंग्रेज़ी में है।
What it means
Browsers do not trust the certificate this site presents: it is self-signed, issued for a different name, or missing intermediate certificates.
Why it matters
Visitors see a security warning; API clients and payment gateways refuse to connect.
How to fix it
- Issue a certificate from a public CA that covers every hostname you serve (including www).
- Install the full chain file (fullchain.pem), not just the leaf certificate.
- Reload the server and test with an SSL checker.
Configuration examples
nginx
ssl_certificate /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem;
Apache
SSLCertificateFile /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem
Any platform
Serve leaf + intermediate certificates; the certificate SAN list must include the requested hostname.
Check your fix
openssl s_client -connect YOUR_DOMAIN:443 -servername YOUR_DOMAIN -showcerts </dev/null
References
- https://letsencrypt.org/docs/