lego: Google Cloud DNS not working anymore
lego --email="letsencrypt@domain.tld" \
--accept-tos \
--csr="/path/to/csr.csr" \
--path="/path/to/letsencrypt/data/" \
--server="https://acme-v02.api.letsencrypt.org/directory" \
--dns="gcloud" \
--dns-resolvers="8.8.4.4:53" \
--dns-resolvers="8.8.8.8:53" \
--dns-resolvers="1.0.0.1:53" \
--dns-resolvers="1.1.1.1:53" \
--dns-timeout=5 \
run;
2018/09/20 21:42:34 [INFO] [domain.net, *.domain.net, *.staging.domain.net, domain.info, *.domain.info, *.staging.domain.info] acme: Obtaining bundled SAN certificate given a CSR
2018/09/20 21:42:35 [INFO] [*.domain.info] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/xxxx
2018/09/20 21:42:35 [INFO] [*.domain.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/xxxx
2018/09/20 21:42:35 [INFO] [*.staging.domain.info] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/xxxx
2018/09/20 21:42:35 [INFO] [*.staging.domain.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/xxxx
2018/09/20 21:42:35 [INFO] [domain.info] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/xxxx
2018/09/20 21:42:35 [INFO] [domain.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/xxxx
2018/09/20 21:42:35 [INFO] [domain.info] acme: Could not find solver for: tls-alpn-01
2018/09/20 21:42:35 [INFO] [domain.net] acme: Could not find solver for: tls-alpn-01
2018/09/20 21:42:35 [INFO] [domain.info] acme: Preparing to solve DNS-01
2018/09/20 21:42:38 [INFO] [domain.net] acme: Preparing to solve DNS-01
2018/09/20 21:42:41 [INFO] [staging.domain.info] acme: Preparing to solve DNS-01
2018/09/20 21:42:44 [INFO] [staging.domain.net] acme: Preparing to solve DNS-01
2018/09/20 21:42:47 [INFO] [domain.info] acme: Preparing to solve DNS-01
2018/09/20 21:42:49 [INFO] [domain.net] acme: Preparing to solve DNS-01
2018/09/20 21:42:51 [INFO] [domain.info] acme: Trying to solve DNS-01
2018/09/20 21:42:51 [INFO] [domain.info] Checking DNS record propagation using [8.8.4.4:53 8.8.8.8:53 1.0.0.1:53 1.1.1.1:53]
2018/09/20 21:45:54 [INFO] [domain.net] acme: Trying to solve DNS-01
2018/09/20 21:45:54 [INFO] [domain.net] Checking DNS record propagation using [8.8.4.4:53 8.8.8.8:53 1.0.0.1:53 1.1.1.1:53]
2018/09/20 21:48:55 [INFO] [staging.domain.info] acme: Trying to solve DNS-01
2018/09/20 21:48:55 [INFO] [staging.domain.info] Checking DNS record propagation using [8.8.4.4:53 8.8.8.8:53 1.0.0.1:53 1.1.1.1:53]
2018/09/20 21:49:01 [INFO] [staging.domain.info] The server validated our request
2018/09/20 21:49:01 [INFO] [staging.domain.net] acme: Trying to solve DNS-01
2018/09/20 21:49:01 [INFO] [staging.domain.net] Checking DNS record propagation using [8.8.4.4:53 8.8.8.8:53 1.0.0.1:53 1.1.1.1:53]
2018/09/20 21:49:07 [INFO] [staging.domain.net] The server validated our request
2018/09/20 21:49:09 [WARN] Error cleaning up staging.domain.info: googlecloud: <nil>
2018/09/20 21:49:11 [WARN] Error cleaning up staging.domain.net: googlecloud: <nil>
2018/09/20 21:49:11 Could not obtain certificates
acme: Error -> One or more domains had a problem:
[domain.info] Time limit exceeded. Last error: NS ns-cloud-c1.googledomains.com. did not return the expected TXT record
[domain.net] Time limit exceeded. Last error: NS ns-cloud-c1.googledomains.com. did not return the expected TXT record
weird thing is that it validates the *.staging.domain.<tld> domains…
have also tried without --dns-resolvers
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 31 (30 by maintainers)
@ldez works fine!
@ldez you pushed into your own fork at https://github.com/ldez/lego/tree/fix/gcloud-wildcard
I pulled that and it seems to work 🎉
there cleanup error re-appeared though.
in this branch: https://github.com/xenolf/lego/tree/fix/gcloud-wildcard
So it’s de3accf531a7dd4eff65ae20e9787fc62045b674 like we thought.
I think it is the fact that I request
domain.tldand*.domain.tld. For LE these are two different validations but they run under the same DNS record. (_acme-challenge.domain.tld) - I suppose forstaging.domain.tldit will be_acme-challenge.staging.domain.tldSo
domain.tldand*.domain.tldseem to be overwriting each other when being submitted serially@ldez de3accf531a7dd4eff65ae20e9787fc62045b674