lego: BlueCat provider cleanup error

Welcome

  • Yes, I’m using a binary release within 2 latest releases.
  • Yes, I’ve searched similar issues on GitHub and didn’t find any.
  • Yes, I’ve included all information below (version, config, etc).

What did you expect to see?

The TXT record removed after validation.

What did you see instead?

There is an error when performing cleanup and the TXT record remains in BlueCat.

How do you use lego?

Binary

Reproduction steps

I run the command:

./lego --server="https://acme-staging-v02.api.letsencrypt.org/directory" --dns="bluecat" --domains="myhost.mydomain" --email="me@mydomain.net" run

Version of lego

lego version 4.6.0 linux/amd64

Logs

2022/04/13 09:31:29 [WARN] [bam.mydomain] acme: cleaning up failed: bluecat: request failed with HTTP status code 404 Full message: {"status":404,"reason":"Not Found","code":"ResourceNotFound","message":"The requested resource was not found"}

Go environment (if applicable)

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

I think it’s good. Thank you!

I think I was able to build it, but the test version doesn’t even get the TXT record added it:

# ./lego-test --server="https://acme-staging-v02.api.letsencrypt.org/directory" --dns="bluecat" --domains=“myhost.mydomain” --email=“me@mydomain” run
2022/04/18 11:37:36 [INFO] [myhost.mydomain] acme: Obtaining bundled SAN certificate
2022/04/18 11:37:36 [INFO] [myhost.mydomain] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/2220594883
2022/04/18 11:37:36 [INFO] [myhost.mydomain] acme: Could not find solver for: tls-alpn-01
2022/04/18 11:37:36 [INFO] [myhost.mydomain] acme: Could not find solver for: http-01
2022/04/18 11:37:36 [INFO] [myhost.mydomain] acme: use dns-01 solver
2022/04/18 11:37:36 [INFO] [myhost.mydomain] acme: Preparing to solve DNS-01
2022/04/18 11:37:36 [INFO] [myhost.mydomain] acme: Cleaning DNS-01 challenge
2022/04/18 11:37:36 [WARN] [myhost.mydomain] acme: cleaning up failed: bluecat: lookupParentZoneID: could not find zone named _acme-challenge.myhost
2022/04/18 11:37:36 [INFO] Deactivating auth: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/2220594883
2022/04/18 11:37:36 Could not obtain certificates:
	error: one or more domains had a problem:
[myhost.mydomain] [myhost.mydomain] acme: error presenting token: bluecat: lookupParentZoneID: could not find zone named _acme-challenge.myhost