go-acme / lego

Let's Encrypt/ACME client and library written in Go
https://go-acme.github.io/lego/
MIT License
7.96k stars 1.02k forks source link

Add DNS provider for Yandex 360 #1975

Closed ldez closed 1 year ago

ldez commented 1 year ago

Ping @kllakk83, can you run the command (with your domain, email, and credentials)?

Closes #1917

ldez commented 1 year ago

@kllakk83 I updated the PR, can you run again the command and give me the output?

kllakk83 commented 1 year ago

@ldez Thank you, now I got a certificate

$ ./dist/lego -m my@email.com --dns yandex360 -d "*.mydomain.com" -d "mydomain.com" run                                                  
2023/08/04 12:13:20 No key found for account my@email.com. Generating a P256 key.
2023/08/04 12:13:20 Saved key to /home/sergey/GolandProjects/ldez/lego/.lego/accounts/acme-v02.api.letsencrypt.org/my@email.com/keys/my@email.com.key
2023/08/04 12:13:21 Please review the TOS at https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf
Do you accept the TOS? Y/n

2023/08/04 12:13:24 [INFO] acme: Registering account for my@email.com
!!!! HEADS UP !!!!

Your account credentials have been saved in your Let's Encrypt
configuration directory at "/home/sergey/GolandProjects/ldez/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.
2023/08/04 12:13:25 [INFO] [*.mydomain.com, mydomain.com] acme: Obtaining bundled SAN certificate
2023/08/04 12:13:25 [INFO] [*.mydomain.com] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/251829755306
2023/08/04 12:13:25 [INFO] [mydomain.com] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/251829755316
2023/08/04 12:13:25 [INFO] [*.mydomain.com] acme: use dns-01 solver
2023/08/04 12:13:25 [INFO] [mydomain.com] acme: Could not find solver for: tls-alpn-01
2023/08/04 12:13:25 [INFO] [mydomain.com] acme: Could not find solver for: http-01
2023/08/04 12:13:25 [INFO] [mydomain.com] acme: use dns-01 solver
2023/08/04 12:13:25 [INFO] [*.mydomain.com] acme: Preparing to solve DNS-01
2023/08/04 12:13:27 [INFO] [mydomain.com] acme: Preparing to solve DNS-01
2023/08/04 12:13:27 [INFO] [*.mydomain.com] acme: Trying to solve DNS-01
2023/08/04 12:13:27 [INFO] [*.mydomain.com] acme: Checking DNS record propagation using [127.0.0.53:53]
2023/08/04 12:23:27 [INFO] Wait for propagation [timeout: 1h0m0s, interval: 10m0s]
2023/08/04 12:23:27 [INFO] [*.mydomain.com] acme: Waiting for DNS record propagation.
2023/08/04 12:33:28 [INFO] [*.mydomain.com] acme: Waiting for DNS record propagation.
2023/08/04 12:43:28 [INFO] [*.mydomain.com] acme: Waiting for DNS record propagation.
2023/08/04 12:53:29 [INFO] retry due to: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/chall-v3/251829755306/dpUxww :: urn:ietf:params:acme:error:badNonce :: JWS has an invalid anti-replay nonce: "891F-SQjYOVI-oCnyb1P5AYBf8XC2_58STi8eLfMP31RSo0"
2023/08/04 12:53:33 [INFO] [*.mydomain.com] The server validated our request
2023/08/04 12:53:33 [INFO] [mydomain.com] acme: Trying to solve DNS-01
2023/08/04 12:53:33 [INFO] [mydomain.com] acme: Checking DNS record propagation using [127.0.0.53:53]
2023/08/04 13:03:33 [INFO] Wait for propagation [timeout: 1h0m0s, interval: 10m0s]
2023/08/04 13:03:38 [INFO] [mydomain.com] The server validated our request
2023/08/04 13:03:38 [INFO] [*.mydomain.com] acme: Cleaning DNS-01 challenge
2023/08/04 13:03:39 [INFO] [mydomain.com] acme: Cleaning DNS-01 challenge
2023/08/04 13:03:40 [INFO] [*.mydomain.com, mydomain.com] acme: Validations succeeded; requesting certificates
2023/08/04 13:03:41 [INFO] [*.mydomain.com] Server responded with a certificate.