getssl icon indicating copy to clipboard operation
getssl copied to clipboard

Wildcard support in ACMEv2

Open floek opened this issue 8 years ago • 40 comments

Hi,

how does it work to get a wildcard certificate from ACMEv2? I setup DNS validation via nsupdate and patched the dns_{add,del}_nsupdate scripts to insert _acme-challenge.domain.tld. 300 in TXT token if *.domain.tldwas given.

The problem is the validation in getssl tries to check DNS for *.domain.tld. which will fail.

Greetings

floek

floek avatar Jan 07 '18 15:01 floek

I'm just going through the wildcard part - I'll update here when ready for testing.

ghost avatar Jan 07 '18 15:01 ghost

Presumably you have all the debug info you need? I'm keen to see support for wildcard domains. The issue I've got is the script isn't parsing out the authorization url for the wildcard domain from the json properly.

You will know this already I'm sure. :)

VibeMatt avatar Jan 25 '18 16:01 VibeMatt

Hi, just wondering how you're getting on with this? And if there's any doco available from yourself yet regarding getting the Wildcard certs going?

hairysamurai avatar Feb 01 '18 13:02 hairysamurai

Are there any news regarding wildcard support in GetSSL?

MollerAndre avatar Feb 14 '18 05:02 MollerAndre

Wildcard certs are in production now. Are there any plans for implementing this feature?

Altimit avatar Mar 13 '18 17:03 Altimit

GetSSL is listed on Let's Encrypt's page, implying it works already? I got this cuz my certbot-auto is still giving errors on the latest version. But I'm getting the following error:

$ getssl "*.marvell.cat"
*.marvell.cat: DNS lookup failed for *.marvell.cat
getssl: *.marvell.cat: exiting due to config errors

and not sure what I need to set up in DNS here, so…

shelbyKiraM avatar Mar 14 '18 03:03 shelbyKiraM

@marv3lls Well, to be clear the page states that getssl is a "ACME v2 Compatible Client". The v2 protocol has a lot changes and features - not only the wildcard support :)

As @floek already said the wildcard feature works (by using the getssl APIv2 branch) until the validation point.

jaltek avatar Mar 14 '18 09:03 jaltek

@srvrco is there any update as to when wildcard validation support will be added, since LetsEncrypt have now launched their ACMEv2 and wildcard support?

Spydar007 avatar Mar 14 '18 10:03 Spydar007

I tried to get wildcard cert using acmev2 version of getssl, but all I get is

../getssl/getssl mydomain.ext Registering account Verify each domain Verifying mydomain.ext Verifying *.mydomain.ext getssl: *.mydomain.ext:Verify error:json was blank

So main domain is verified properly, but wildcard is not... is it still under development and that's why or am I probably doing something wrong?

ementor avatar Mar 14 '18 17:03 ementor

The question is: Is this tool still in development or the author dropped support?

MollerAndre avatar Mar 15 '18 08:03 MollerAndre

Still around - I haven't dropped off completely - purely the day job getting in the way. Will try and complete the additional functionality ASAP ( possibly over the weekend )

ghost avatar Mar 15 '18 17:03 ghost

That'd be awesome, thanks!

Spydar007 avatar Mar 15 '18 19:03 Spydar007

I'm trying to manually add a TXT record to see if I could workaround this.

But how do I add this TXT record? It seems to verify via "_acme-challenge.*.<mydomain.com>" which I can't actually add to my DNS provider tho..

IMO this doesn't look like a valid record to me. Did I do something wrong? Sorry I only know little about how DNS works.

tgckpg avatar Mar 16 '18 04:03 tgckpg

As an additional question: Would you have to change the CA to : CA="https://acme-v02.api.letsencrypt.org"

And how about servers where you don't control the DNS values directly? Is it one value that stays or does the value need to be changed every time?

Nimja avatar Mar 16 '18 14:03 Nimja

@Nimja Have a look at the APIv2 branch of getssl. You'll see that there are already both URLs to the new api endpoint in it.

You'll have to change the TXT records every time you renew your wildcard certs, yes. Therefore you should use the API scripts in order to automate the process (if possible).

jaltek avatar Mar 16 '18 15:03 jaltek

@srvrco Any update on this? I've got certificates expiring in the next week that I'd really like to move to wildcard...

Spydar007 avatar Mar 30 '18 13:03 Spydar007

Any experiences with the fork from shtzeng ? Which branch should I take ?

winnie13 avatar Apr 17 '18 10:04 winnie13

Check out #376 as a starting point. Works for the basic wildcard case. Haven't tested it much further.

costela avatar Apr 17 '18 14:04 costela

@costela No luck with #376. I just get response not in json format.

Spydar007 avatar Apr 18 '18 17:04 Spydar007

@Spydar007 Haven't tried it, but maybe this will help?

tohn avatar Apr 18 '18 21:04 tohn