SSL / monitoring TECHNICAL HANDBOOK / 2026

SSL ERRORS

unable to get local issuer certificate: causes and fixes

OpenSSL could not find an issuer needed to build the certificate chain. Check the intermediates sent by the server and the CA bundle used by the failing client.

What it means

Check both ends of the chain. The server may have omitted an intermediate certificate, or the client may need the correct CA bundle or managed private root. The word local refers to OpenSSL’s chain-building result, so inspect the server response as well as the client configuration.

What to check

  1. Capture the chain sent by the server using -showcerts; this is not necessarily the complete chain the verifier builds.
  2. Record the verification depth and the issuer expected by the implicated certificate.
  3. Identify the CA file/path and OpenSSL build used in the failing environment.

Test the connection

openssl s_client -connect www.example.com:443 -servername www.example.com \
  -verify_hostname www.example.com -verify_return_error </dev/null

Run this OpenSSL 3.x example in a POSIX shell. Keep the hostname, peer address and full verification result with the error report.

Choose Windows, macOS or Linux commands →

How to fix it

  1. Deploy required server intermediates when the chain being served is incomplete.
  2. Configure the approved trust anchor for private PKI through normal administrative trust management.
  3. Correct a missing or outdated runtime CA bundle when that is the cause.

Check the fix

Repeat the same hostname-aware verification with the intended trust configuration. Include a clean client so cached intermediates cannot hide a deployment error.

Details worth checking

Inspect the server chain and client CA bundle separately. Missing intermediates belong in the server configuration; a private trust anchor belongs in the managed client trust store.

Related guides

Related errors

References