Classic one: after a certificate renewal, browsers load the site fine but curl fails with unable to get local issuer certificate. What is the most likely cause?
- curl's trust store is out of date. Possible but rare; an incomplete chain is far more common right after a renewal.
- The server only supports TLS 1.3 and curl does not. Modern curl supports 1.3, and the error would be a protocol failure.
- The server presents only the leaf certificate; browsers repair the chain from cached intermediates, curl does not. Add the intermediate(s) to the server's chain. Incomplete chains are the classic post-renewal outage for non-browser clients.
- The certificate is for the wrong hostname. That fails in browsers too and gives a different error.
The server sends only its leaf certificate; add the intermediate certificates to the server's chain file.
Roots live on the client; intermediates must come from the server. openssl s_client -showcerts shows how many certificates the server sent; if it is one, the chain file is wrong.
Reaching for curl -k or "update curl's CA bundle". The client is right and the server's chain file is wrong; -k hides exactly the fault every real client will hit.