tls.obtain will retry {"error": "[console.example.com] Obtain: [console.example.com] solving challenges: presenting for challenge: adding temporary record for zone \"example.com.\": Config for domain console.example.com not found (order=https://acme-staging-v02.api.letsencrypt.org/acme/order//) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)", "attempt": 3, "retrying_in": 120, "elapsed": 186.085659, "max_duration": 2592000}
but www.example.com already using the wildcard cert
I see there is tls.dns config, I really have no idea how to config caddy to using a wildcard cert, I hope I just config the cert once, then all domain match the wildcard should use the cert.
Example Domain
This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
@francislavoie@Bruce5051 Thanks, example.com is a placeholder only, I want to config wildcard cert by using acme dns, I don’t know how to config the cert and how to tell caddy to use a wildcard cert.
{
http_port 80
https_port 443
log {
output stdout
level INFO
format console
}
acme_dns acmedns {
config {
"*.example.com" {
username ""
password ""
subdomain ""
fulldomain ""
server_url "https://auth.acme-dns.io"
}
}
}
}
http://:80 {
respond / "Hello World" 200
}
# This works
example.com {
respond / "Hi from Root" 200
}
# This not work
web.example.com {
respond / "Hi from Web" 200
}
How can I let web.example.com use alread request cert *.example.com, is this a valid pattern in caddy ?