Skip to content
\n\n
Events:\n  Type     Reason             Age                From                       Message\n  ----     ------             ----               ----                       -------\n  Normal   CreateCertificate  13m                cert-manager-gateway-shim  Successfully created Certificate \"cafe-secret\"\n  Warning  BadConfig          13m (x9 over 13m)  cert-manager-gateway-shim  Skipped a listener block: [spec.listeners[0].hostname: Required value: the hostname cannot be empty, spec.listeners[0].tls: Required value: the TLS block cannot be empty]\n
\n

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.

\n

I've included the full output of kubectl describe cluster issuer letsencrypt-prod and 'kubectl describe gateway gateway' as .txt attachments for reference.
\ndescribe.clusterissuer.txt
\ndescribe.gateway.txt

\n

Thank you in advance for any help!

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

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!

\n

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 building towards doing so. The holdup is just my own understanding of it all, so I'm excited to learn more about it.

\n

Thanks to everyone involved in this project. I'm looking forward to using it more!

","upvoteCount":0,"url":"https://github.com/nginx/nginx-gateway-fabric/discussions/1453#discussioncomment-8071306"}}}

Let's Encrypt How-To documentation #1453

Answered by Curtingham
Curtingham asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Curtingham
Comment options

@Curtingham
Comment options

Answer selected by mpstefan
@ciarams87
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants