cert-manager: Acme challenge keeps failing due to propagation check failed
The cert-manager pod logs the following on GKE kubernetes cluster:
cert-manager/controller/challenges "msg"="propagation check failed" "error"="presented key (\n\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\n \u003chead\u003e\n \n \u003cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /\u003e\n \u003ctitle\u003eKonstantin Werhahn | \u003c/title\u003e\n \u003cmeta name=\"description\ m .....CUT..... ss=\"large\"\u003ePage Not Found\u003c/h1\u003e\n \u003cp\u003eThe page you requested couldn't be found - this could be due to a spelling error in the URL or a removed page.\u003c/p\u003e\n \u003ca class=\"btn\" href=\"home\"\u003eGo Back Home\u003c/a\u003e\n \u003c/div\u003e\n \u003c/div\u003e\n .... CUT...../script\u003e\n\n\u003c/html\u003e\n\n) did not match expected (VKC1CqDsd27eEL5Pge8eF14Trm6WOhtRVq5_2xJrc94.AKkjxkjtuUfCyRBifGSsXmUSkyIVj7_vVlXwjXmMU8c)" "dnsName"="khw.io" "resource_kind"="Challenge" "resource_name"="khw-prod-595774067-0" "resource_namespace"="production" "type"="http-01"
On the container of the app I can see the .acme request being logged. Do I need to create an endpoint?
Where do I need to look? What could be the problem?
Environment details::
- Kubernetes version (e.g. v1.10.2): 1.11.10-gke.5
- GKE
/kind bug
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 12
- Comments: 18 (1 by maintainers)
Any solutions?? I have same problem and I am using azure with istio gateway.
I am also seeing this, both on Azure and GCP. I am using ingress-nginx.
The error (third line) shows the HTML fetched from the domain of the certificate itself rather than a hash.
Can you please try again with the newest version of cert-manager?
I don’t think this is a bug as such, rather a misconfiguration somewhere. If you’re using ingress-gce, which it looks like you might be, please don’t forget to set the
acme.cert-manager.io/http01-override-ingress-nameannotation on your Certificate resource to the name of the Ingress used to serve traffic for your domain: https://github.com/jetstack/cert-manager/blob/8d12d351e8a098e7d1323ffb99600571f6368095/pkg/apis/acme/v1alpha2/types.go#L20-L25