Closed wirepatch closed 5 months ago
@wirepatch this looks like a lego issue (we don't do any pre-processing on the domains). Have you tried replicating the issue with lego yet as per https://github.com/vancluever/terraform-provider-acme/blob/main/docs/lego.md?
@wirepatch this looks like a lego issue (we don't do any pre-processing on the domains). Have you tried replicating the issue with lego yet as per https://github.com/vancluever/terraform-provider-acme/blob/main/docs/lego.md?
Thx! Being new to the game I tried my best at https://github.com/go-acme/lego/issues/2211
@wirepatch as mentioned over in the lego issue we'll continue the thread over here. As it stands the issue is possibly due the lack of communication in our own wrapper about the provider being parallel - I'll repro it and fix on this side.
I'd like to support both a domain apex
https://goik.sdi.hdm-stuttgart.cloud
andhttps://www.goik.sdi.hdm-stuttgart.cloud
by a single cert.Starting from the acme_certificate example I set up:
The Bind server's log shows success:
So there are two challenges acting on separate zones
goik.sdi.hdm-stuttgart.cloud
andwww.goik.sdi.hdm-stuttgart.cloud
. Now I replacewww.goik.sdi.hdm-stuttgart.cloud
by a wildcard*.goik.sdi.hdm-stuttgart.cloud
. This works well without the subsequentsubject_alternative_names
. But in presence of that line ...... certificate generation fails:
The log reveals the culprit:
Thus instead of modifying two different zones the second challenge just overrides the first one by acting on the now common zone
_acme-challenge.goik.sdi.hdm-stuttgart.cloud
.N.b.: According to https://help.eurodns.com/s/article/Does-the-wildcard-secure-the-apex-domain-in-a-SSLcertificate the apex can be included in a single domain cert.