Error: acme-challenge

Hi

Could someone please help with this
K8s version 1.28.2
Error: cert-manager-challenges Error presenting challenge: while attempting to find Zones for d ││ omain _acme-challenge.www.mohang.co.uk. ││ while querying the Cloudflare API for GET “/zones?name=_acme-challenge.www.mohang.co.uk” ││ Error: 6003: Invalid request headers<- 6103: Invalid format for X-Auth-Key header

cert-manager: 1.14.2

What API auth scheme have you used? If it is an API token then it doesn’t go in the X-Auth-Key, it would go in an api-token.

1 Like

@Cyb3r-Jak3
Thanks fixed the issue… i was doing the bas64 encoded value when creating the secret, but actually the when you create the value the k8s does the base encoding and its working now…

now my issue is:
i moved my domain to cloudflare and set dns A record and to my IP, but its not forwarding to my ip i can nslookup and get the details but when i do traceroute it fails, any advice

Thanks

The DNS records for mohang.co.uk and www.mohang.co.uk are not proxied so requests are going directly to your origin server and not through Cloudflare.
https://cf.sjr.org.uk/tools/check?cd6003cb39324934adc6304565f667ec#dns

Any problem is with your server.

It seems your server is not responding on ports 80 and 443 and I guess the IP address is on a broadband connection. Check you have forwarded the ports in your router, your server firewall is configured and is running the services, your ISP isn’t blocking these ports or inbound connections and isn’t using CG-NAT.

1 Like

i have the forwarding for port 80 and 443 nad the ISP is not blocking

Check your server is up and answering queries. It’s not a Cloudflare issue so you need to debug why your server can’t be reached directly.