A Java service fails with `PKIX path building failed: unable to find valid certification path to requested target` right after the internal CA was rotated
IntermediateTroubleshootingCertificates, TLS and security incident response
Answer
Likely causes → The JVM uses its own truststore ($JAVA_HOME/lib/security/cacerts or a custom -Djavax.net.ssl.trustStore), not the OS bundle. The new root or intermediate was never imported.
Diagnose →
kubectl exec deploy/orders -- sh -c 'keytool -list -cacerts -storepass changeit | grep -i acme'
kubectl exec deploy/orders -- sh -c 'echo $JAVA_TOOL_OPTIONS'
Fix →
keytool -importcert -cacerts -storepass changeit -noprompt -alias acme-root-2026 -file acme-root-2026.crt
Do this in the image build, or mount a managed truststore.
Prevent → Rotate CAs with overlap: publish the new root to every truststore weeks before the switch and keep the old one until all leaf certificates have moved.
More on Certificates, TLS and security incident response
A cert-manager Certificate stays `Ready=False` and the Challenge shows `Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200'`IntermediateA DNS-01 challenge hangs forever with `DNS record for "acme.com" not yet propagated`, although `dig` from your laptop shows the TXT recordAdvancedIssuance fails with `429 urn:ietf:params:acme:error:rateLimited: too many certificates already issued`BeginnerA service calling another internal service fails with `x509: certificate signed by unknown authority`BeginnerAt 05:30 every client starts failing with `x509: certificate has expired or is not yet valid`BeginnerBrowsers load `https://api.acme.com` fine, but `curl` and Java clients fail with `unable to get local issuer certificate`Intermediate