A service calling another internal service fails with `x509: certificate signed by unknown authority`
BeginnerTroubleshootingCertificates, TLS and security incident response
Answer
Likely causes → The server uses a certificate from your private CA, and the client container's trust store (often a minimal or distroless image) does not include that CA.
Diagnose →
openssl s_client -connect billing.internal:443 -servername billing.internal -showcerts </dev/null | openssl x509 -noout -issuer
kubectl exec deploy/api -- ls /etc/ssl/certs | head
Fix → Distribute the CA bundle to workloads, for example with cert-manager's trust-manager Bundle synced into a ConfigMap, mounted at /etc/ssl/certs/acme-ca.pem, with SSL_CERT_FILE pointed at it. Or add it in the base image (update-ca-certificates). Never "fix" it with InsecureSkipVerify or -k.
Prevent → Ship the private CA in every base image and use one managed bundle source.
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`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`x509: certificate is valid for acme.com, *.acme.com, not api.eu.acme.com`Beginner