After having hit LE limits twice already I am slightly desperate to understand what I am doing wrong...if anyone would help
I have two web facing domains via traefik 2 and each of those domains has 6 or 9 sub domains.
I am trying to request one or two certificates (for domain1 and domain2 or one for both) from LE, but I am obviously not defining it correctly to the limits.
The question is do I have to list the main and 8 subdomains against each router definition as in 1) and 2) below? Thanks in advance....
I have been using the staging server, where all of the certificate requests succeeded and all was well.
My issue is not with LE, it is with how traefik 2 requests the certs depending on their definition in the configs. That seems missing from the docs, as its critical to know if you will hit the limits.
What it didn't show me is that a separate cert was being requested per micro service router I had defined, which I'd understood from the 2.2 manual to be the new way of defining the main and sans certs.
Logically to me the 1.7 way of defining main and sans was more logical but I could understand defining per router would be more flexible?
What I couldn't find was any example of splitting those out?
So having a main domain1.com on one micro service router and then defining all of the others as sans perhaps? Who know.
I would have thought that all the sans sub domains would be grouped and traefik 2 would request 1 cert from LE, but it doesn't it requests 11, 1 main and 10 sub domains.
I have since main progress by duckduckdoing but not after a number of days trying to figure out the docs (which are otherwise great though).
Thanks for the link, except I know what wildcard certs are just not how to define them and where within the traefik 2 config?
Where does it show how to do that in the docs, as I couldn't find it
I have now wildcards sorted after a late evening last night and a good bit of duckduckdoing, but I am still unclear how to define a non wildcard http set of main and sub domains in traefik2 :-/ ?
I ended up adding the main and sans for each domain in the domain to www.domain redirect, while removing it from all the other routers .... I now have a cert store with two certs, with domain1+subdomains and domain2+subdomains working via http.
I can also successfully request wildcard certs via dns
I don't know if this is an approved method, but its the only one I have found to work.
Traefik will also create a cert for multiple domains with tlsChallenge if you just specify all the domains using Host(). Make sure all domains point to your server IP.