How to diagnose a missing intermediate TLS certificate
Compare the certificates an HTTPS endpoint sends with the path a client can verify. Reproduce a missing issuer and a hostname mismatch locally.
How we checked this guide. We used OpenSSL 3.6.1 and a local certificate hierarchy to compare a missing issuer, a complete verification path, and a hostname mismatch. Editorial and testing standards
What a working browser can hide
A customer can load a website on a laptop while a newly installed client rejects the same HTTPS address. Before renewing the certificate a second time, find out which certificates the site actually sends. A browser may already have an intermediate from a previous connection. A fresh client can trust the same root and still lack the certificate that connects the site’s public key to that root.
Imagine a chain with three members. The leaf certificate identifies the website. An intermediate certificate identifies the authority that signed the leaf. A root in the client’s trust store provides the starting point for trust. During a TLS handshake the website sends its leaf first, followed by the intermediates the client needs. The root commonly stays in the client’s store. Receiving a root from a website cannot by itself establish trust in that root.
Record the list sent by the HTTPS endpoint
Start with the hostname a visitor actually opens. A certificate installed on an application server may serve only the connection from a reverse proxy. The browser might receive an entirely different certificate from a hosting platform. Record the hostname, port, observation time and leaf fingerprint. Keep the hostname in the server name indication when several sites share one address. Otherwise the server can select a different virtual host before your application sees a request.
For a domain you operate, replace site.example in the command with its name. OpenSSL’s showcerts output includes the certificates sent during that connection, in the order received. Read the certificate list as well as the verification messages. A single entry is expected for some chains, so counting entries alone cannot diagnose the problem. Identify the issuing authority for that particular leaf and check whether the failing client can reach a trusted root using the evidence available to it.
openssl s_client -connect site.example:443 -servername site.example -showcerts </dev/nullReproduce the missing issuer with three disposable certificates
This small experiment lets you change exactly one input to verification. Run the following commands with OpenSSL 3 in a new, empty directory. They generate a test root, a test intermediate and a leaf for service.example. Their keys belong only to this exercise. You can use the root as an explicit input to one command without installing it in a browser or changing your computer’s trust store.
The first verification gives OpenSSL the trusted root and the leaf. It fails because the leaf was signed by the intermediate and the verifier has no copy of it. The second supplies issuer.pem as an untrusted chain-building candidate. The root remains the only explicitly trusted certificate. The expected result is leaf.pem: OK. Both commands use the same leaf, same name, same certificate dates and same trust anchor. That controlled difference is what makes the result informative.
openssl req -x509 -newkey rsa:2048 -noenc -days 2 -subj '/CN=Demo Root' -keyout root.key -out root.pem -addext 'basicConstraints=critical,CA:TRUE' -addext 'keyUsage=critical,keyCertSign,cRLSign'
openssl req -x509 -newkey rsa:2048 -noenc -days 2 -subj '/CN=Demo Issuer' -CA root.pem -CAkey root.key -keyout issuer.key -out issuer.pem -addext 'basicConstraints=critical,CA:TRUE,pathlen:0' -addext 'keyUsage=critical,keyCertSign,cRLSign'
openssl req -x509 -newkey rsa:2048 -noenc -days 2 -subj '/CN=service.example' -CA issuer.pem -CAkey issuer.key -keyout leaf.key -out leaf.pem -addext 'basicConstraints=critical,CA:FALSE' -addext 'subjectAltName=DNS:service.example' -addext 'extendedKeyUsage=serverAuth'openssl verify -no-CApath -no-CAstore -CAfile root.pem -purpose sslserver -verify_hostname service.example leaf.pem
openssl verify -no-CApath -no-CAstore -CAfile root.pem -untrusted issuer.pem -purpose sslserver -verify_hostname service.example leaf.pemRun a second case that a longer bundle cannot fix
Keep the working chain from the last step and change the requested name to www.service.example. Verification now reports a hostname mismatch. The leaf covers service.example and has no entry for the www subdomain. This is a different failure even though the user might describe either case as a certificate warning. For this example the fix would be to serve a certificate covering the intended name. Adding more intermediate certificates would leave the requested name uncovered.
The SSL Checker gives you separate observations for hostname, dates and trust from its own runtime. If the name and dates pass while trust fails, capture the public certificate list and check the trust store used by the affected client. A broad trust error can also follow a change of trust anchor or an unsuitable intermediate. The local test above establishes how a missing issuer behaves with known files. A live diagnosis still needs the actual peer list and the client’s verification result.
openssl verify -no-CApath -no-CAstore -CAfile root.pem -untrusted issuer.pem -purpose sslserver -verify_hostname www.service.example leaf.pem| Requested host | Intermediate available | Expected observation |
|---|---|---|
| service.example | No | Issuer lookup fails |
| service.example | Yes | Verification succeeds |
| www.service.example | Yes | Hostname mismatch |
Match the candidate issuer to the leaf that failed
A renewal can use a different intermediate even when the public hostname and the certificate provider stay the same. Compare the leaf’s issuer with the subject of the proposed intermediate. Certificate names help you select candidates, but two certificates can use similar names. Verify the candidate with the leaf and intended root as in the local example. Keep the leaf fingerprint with the result so that a successful check on yesterday’s certificate cannot close a report about today’s deployment.
If an offline verification succeeds and the public client still fails, compare the candidate you supplied to OpenSSL with the certificates the endpoint actually sent. It is easy to give an offline verifier a file that the edge never received. Conversely, a client with a different trust store may reject the same transmitted list. Capture the trust store or client version before changing anything on the server. That difference determines whether to investigate certificate delivery or client trust.
Install the issuer on the endpoint that serves visitors
Use the bundle supplied for the certificate you deployed. Some control panels accept separate leaf and intermediate fields. A server such as nginx expects the leaf followed by its intermediate certificates in the configured certificate file. Check the deployment instructions for the component terminating the public connection. A correct bundle on an unused origin will make the files on disk look healthy while the public handshake continues to send the old list.
After applying the change through your normal deployment process, open a fresh connection and record the leaf fingerprint and peer list again. If you added only the intermediate, the leaf fingerprint can legitimately stay the same. Repeat the original failing request with the client and trust settings that revealed it. If one region or hostname continues to fail, compare its served list with the working one before replacing the certificate again. Keep the two observations with the deployment record so the next renewal can repeat the same check.