Interview Prep/DevSecOps/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'`

IntermediateTroubleshootingCertificates, TLS and security incident response
Answer

Likely causes → The solver's temporary Ingress or route for /.well-known/acme-challenge/<token> is not served. Typical reasons: the wrong ingressClassName in the Issuer solver, an HTTP-to-HTTPS redirect or auth in front of the path, or DNS for the host not yet pointing at this load balancer.

Diagnose →

cmctl status certificate api-tls -n prod
kubectl describe challenge -n prod
kubectl get ingress -n prod | grep cm-acme-http-solver
curl -v http://api.acme.com/.well-known/acme-challenge/test

Fix → Set the solver's ingress class to the one that actually serves the host:

solvers:
- http01:
    ingress:
      ingressClassName: nginx

Exempt the challenge path from forced HTTPS or auth, and fix DNS.

Prevent → For wildcards, internal hosts or anything behind a CDN, use DNS-01. Test new issuers against the Let's Encrypt staging endpoint.

All DevSecOps questions

More on Certificates, TLS and security incident response