hakwerk / labca

A private Certificate Authority for internal (lab) use, based on the open source ACME Automated Certificate Management Environment implementation from Let's Encrypt (tm).
https://lab-ca.net
Other
374 stars 39 forks source link

Domain name does not end with a valid public suffix (TLD) #103

Closed fly-man- closed 8 months ago

fly-man- commented 1 year ago

I thought that when I set the Domain mode to lockdown to only be able to use the domains I specified it would be able to do

*.grandhotel.internal

But for some reason LabCA returns the following error when requesting a certificate:

root@servicehub:/home/service/lego# ./lego --server https://local-ca/directory -a -m beheerder@grandhotel.local --http -d *.grandhotel.internal run
2023/11/17 20:35:06 [INFO] [*.grandhotel.internal] acme: Obtaining bundled SAN certificate
2023/11/17 20:35:06 Could not obtain certificates:
        acme: error: 400 :: POST :: https://local-ca/acme/new-order :: urn:ietf:params:acme:error:rejectedIdentifier :: Error creating new order :: Cannot issue for "*.grandhotel.internal": Domain name does not end with a valid public suffix (TLD)

Is this something that's build into Boulder to "reject" the domainname and how do I allow .internal to be used within my homelab ?

hakwerk commented 1 year ago

It should indeed work for non-official TLDs. Is there some more information in the server logs?

I think someone once had this issue because the domain configured in the lockdown started with a dot, which it shouldn't.

fly-man- commented 1 year ago

Oddly I think I might have to just grab a backup from my configs and then reinstall ?