I am trying to register in this example two different domains with Caddy docker to letsencrypt an receiving this error message:
2017/10/27 19:11:52 [tls] failed to get certificate: acme: Error 400 - urn:acme:error:malformed - Error creating new authz :: DNS name does not have enough labels
What is the iddue? Can you help me please?
If I am doing it with only one domain it is working ...
Sorry, I don’t use Caddy server nor Docker so I won’t be able to help you but Caddy developer @mholt is a member of this community so he could take a look to your issue.
Also, I’ve changed your title post to reflect that you are using Caddy web server so it could bring the attention to other community members just in case they use Caddy.
Note: First I thought your problem was the lack of A/AAAA records for your 2 subdomains ebooks.test.my-wan.de and nextcloud.test.my-wan.de so I thought you were using the DNS challenge but checking my-wan.de seems a dynamic domain provided by twodns company and I can’t see Caddy supports this DNS provider. Then, checking issued certs for my-wan.de I can see some issued certs for ebooks.[your_user_name].my-wan.de and nextcloud.[your_user_name].my-wan.de. What I mean is, always provide your real domains or you could get erroneus answers based on the wrong provided information.
Management URLs excluded
redirection of HTTP to HTTPS
using HTTPS to connect to the backend
Ignoring cert errors (backed servers using self signed certs)