After rotating the internal CA, service-to-service calls fail with "remote error: tls: bad certificate" for some callers but not others.
IntermediateTroubleshootingDNS, TLS and certificates
Answer
Likely causes → A hard cut-over of the CA. Services that picked up new certs signed by the new CA are talking to services whose trust bundle still contains only the old CA (and the reverse). In mTLS both sides verify, so either side can reject.
Diagnose →
openssl s_client -connect orders:8443 -cert client.crt -key client.key -CAfile ca.crt </dev/null 2>&1 | grep -E 'Verify return|alert'
openssl x509 -in /etc/tls/tls.crt -noout -issuer -enddate
Compare the issuer of each workload's cert with the CAs in each workload's trust bundle.
Fix → Put both old and new CA certificates in every trust bundle, roll that out everywhere, and only then reissue leaf certs from the new CA. Remove the old CA after every leaf has rotated.
Prevent → Treat CA rotation as a three-phase rollout (add trust, rotate leaves, remove old trust). Tools like cert-manager trust-manager or a mesh's built-in CA automate the overlap.
More on DNS, TLS and certificates
Monday morning every browser shows "NET::ERR_CERT_DATE_INVALID" for app.example.com; the cert is from Let's Encrypt via cert-manager.BeginnerYou changed the A record for api.example.com to a new load balancer an hour ago, but some users still reach the old server.BeginnerA cert-manager Certificate is stuck at "Issuing"; the Challenge says "Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200'".IntermediateAfter switching to a slim base image, the service fails every outbound HTTPS call with "x509: certificate signed by unknown authority".BeginnerBrowsers load the site fine, but Android apps and `curl` from servers fail with "unable to verify the first certificate" or "unable to get local issuer certificate".Intermediate`https://example.com` works, but `https://www.example.com` shows "NET::ERR_CERT_COMMON_NAME_INVALID".Beginner