Closed gareththered closed 2 years ago
Hello,
I don't reproduce your problem:
$ NS1_API_KEY=xxx lego --dns.resolvers 1.1.1.1:53 --accept-tos --email foo@foo.com --dns "ns1" --domains "*.foo.com" --server "https://acme-staging-v02.api.letsencrypt.org/directory" run
2022/04/08 00:54:23 [INFO] acme: Registering account for foo@foo.com
!!!! HEADS UP !!!!
Your account credentials have been saved in your Let's Encrypt
configuration directory at "/home/ldez/sources/go/src/github.com/go-acme/lego/.lego/accounts".
You should make a secure backup of this folder now. This
configuration directory will also contain certificates and
private keys obtained from Let's Encrypt so making regular
backups of this folder is ideal.
2022/04/08 00:54:23 [INFO] [*.foo.com] acme: Obtaining bundled SAN certificate
2022/04/08 00:54:23 [INFO] [*.foo.com] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/2121235618
2022/04/08 00:54:23 [INFO] [*.foo.com] acme: use dns-01 solver
2022/04/08 00:54:23 [INFO] [*.foo.com] acme: Preparing to solve DNS-01
2022/04/08 00:54:24 [INFO] [*.foo.com] acme: Cleaning DNS-01 challenge
...
lego version dev linux/amd64
Your version doesn't seem to be an official version.
The expected output is :
$ lego --version
lego version 4.6.0 linux/amd64
Apologies - senior moment there on my part.
As you say dev
cannot be a version as it would be a moving window, dependent on when it was built/packaged. It turns out that Debian is way behind.
I've downloaded the latest binary and it works perfectly.
Welcome
What did you expect to see?
I expected to see
lego
at least attempt to enrol for a Let's Encrypt certificate.What did you see instead?
lego
failed instantly with:How do you use lego?
Binary
Reproduction steps
Credentials:
Additional Configuration:
More information: https://go-acme.github.io/lego/dns/ns1
Logs
No logs.
Go environment (if applicable)
No response