On 2026-11-25, Leo Unglaub <[email protected]> wrote: > i have a question about the relayd TLS certificate handling. Is it > possible to use wildcard certificates or do i need the TLS certificate > to list all subdomains in "X509v3 Subject Alternative Name"? > >> http protocol "p_https" { >> block >> http websockets >> >> tls keypair example.com >> tls keypair my-example.com >> ... >> } > > Currently this would work for the domains example.com and my-example.com > and additionally for all subdomains listed in the crt files. But i > cannot find how this would translate with a *.example.com and > *.my-example.com. > > I looked into the source code and as far as i can tell there is no > support for mapping the wildcard certificate to a path/relay in relayd > or am i missing something?
This should work just as well for wildcards as it does for multiple fqdn in subjectAlternativeName. relayd doesn't need any particular support, it just serves the cert that's in the file. > What is the correct way of handling this in relayd now that acme-client > got support for wildcard certificates in 8.0? The wildcard support in acme-client is limited to those CAs where they do not require domain-specific challenges e.g. using EAB keys. It does not work with Let's Encrypt who require a DNS challenge, acme-client does not support this. (8.0 release notes overstate what's actually supported here).

