Let's Encrypt How-To documentation #1453
-
QuestionI have been working through the How-To guides for NGINX Gateway Fabric on the official documentation site. In particular, I've set the following up in my environment, and they've all worked perfectly (the verification cURL commands all produce the expected results):
My question relates to the next How-To guide, Securing Traffic using Let's Encrypt and Cert-Manager, which I have not had such luck with. I am interested to find out what I may be able to do to get this part working. Recreating the problemI applied the manifests in the Securing Traffic How-To exactly as shown with the indicated necessary changes, and one minor change:
The problem I'm trying to resolve appears halfway through the guide, immediately after the Gateway object has been created. The guide indicates that ObservationsI located some errors and diagnostic output that may be relevant, mainly in the Gateway object:
I am able to get rid of the hostname warning by adding the name declaration to that part of the manifest, but I have not been able to resolve the error regarding the TLS block. I've included the full output of Thank you in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @Curtingham, thanks for your interest in this project!!
My guess is that traffic from LetsEncrypt server cannot reach the Challenge service created by cert-manager. Have you tried going through the ACME challenge troubleshooting guide? In addition to the cert-manager troubleshooting guide, you can check the cert-manager pod logs, the challenge temporary HTTPRoute resource status, and the NGF NGINX logs for clues about where the issue might be occurring: kubectl logs <cert-manager-pod> -n cert-manager kubectl get httproutes
<...>
kubectl describe httproutes cm-acme-http-solverxxxxx kubectl logs <ngf-pod-name> -n nginx-gateway -c nginx |
Beta Was this translation helpful? Give feedback.
Thanks again @ciarams87. After working through it further and following the prompts you gave, I was able to get this working. My fix is a bit of a sidestep: I switched to using the DNS01 challenge mode, avoiding the need to port forward for the HTTP01 challenge mode at all. It took some other minor tweaks to the how-to guide, but I now have a valid (Staging) certificate and a properly working HTTPS example service running behind NGF. Thanks for pointing me in the right direction!
I'm still curious about what's typically recommended for port forwarding from the Public Endpoint to NGINX Gateway Fabric in production environments - I'm not yet running anything critical behind it, but I am bui…