-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS Challenges example #9
Comments
Jep, sorry the documentation on this is a little spare atm.
Some examples for common registrars can be found here:
That's pretty much it. |
Thanks - yes I have that bit in hand (using gcloud) and believe I have the necassary environment variables set (remove them and I get an error from lego, which is a good sign). I also set cfg.DNSProvider = "gcloud" Local = false and pass to Init without error. When Init runs, I get the following in the log. It appears that a TLS challenge is being tried not DNS:
|
That's weird indeed. Also because retrieving the cert via TLS-ALPN should have worked as well. |
Are you using the Default config? If they are set, they will also be set as available challenges in lego. Currently the TLS challenge is always added before the DNS challenge. |
Ah yes, that gets me closer. Nuking these kicks Lego into using DNS-01. It does appear that lego favours TLS over DNS. Without thesek it reports 'Cannot find solver for tls-alpn-01 and http-01' before it decides to use DNS-01 solver. I am still getting errors but at this point I think this is just me tweaking the google cloud IAM permissions. I won't get back to this until Monday but I think you have given me enough to press on. It's looking good thanks and if I get it going I will propose an example and documentation tweaks. |
Great! I've added log messages which challenges are being set and moved setting the DNS challenge before setting the others in v1.6.8. Enjoy the weekend |
Sorry - I got stuck at go trying to use the library for DNS challenges.
If you can give me a couple of basic pointeres here, I will try and figure it out and then propose a minimal example as a PR if I get it working!
The text was updated successfully, but these errors were encountered: