-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add DNS provider for Baidu Cloud #2505
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
First, the comments are public; are you sure to want to publish the access key and secret key publicly? You must also provide a domain. |
Yes, it's okay. I'll delete it later. Domain: 0559ah.top |
Please let me know when the test is over and I will delete it |
It works: $ rm -rf .lego
$ BAIDUCLOUD_ACCESS_KEY_ID=""xxx"\
BAIDUCLOUD_SECRET_ACCESS_KEY="xxx" \
./dist/lego --email [email protected] --dns baiducloud -d '*.0559ah.top' -d 0559ah.top -s https://acme-staging-v02.api.letsencrypt.org/directory run
2025/04/11 05:16:50 No key found for account [email protected]. Generating a P256 key.
2025/04/11 05:16:50 Saved key to /home/ldez/sources/go-acme/lego/.lego/accounts/acme-staging-v02.api.letsencrypt.org/[email protected]/keys/[email protected]
2025/04/11 05:16:50 Please review the TOS at https://letsencrypt.org/documents/LE-SA-v1.5-February-24-2025.pdf
Do you accept the TOS? Y/n
y
2025/04/11 05:16:52 [INFO] acme: Registering account for [email protected]
!!!! HEADS UP !!!!
Your account credentials have been saved in your
configuration directory at "/home/ldez/sources/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 the ACME server so making regular
backups of this folder is ideal.
2025/04/11 05:16:53 [INFO] [*.0559ah.top, 0559ah.top] acme: Obtaining bundled SAN certificate
2025/04/11 05:16:53 [INFO] [*.0559ah.top] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/194659574/16759259784
2025/04/11 05:16:53 [INFO] [0559ah.top] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/194659574/16759259794
2025/04/11 05:16:53 [INFO] [*.0559ah.top] acme: use dns-01 solver
2025/04/11 05:16:53 [INFO] [0559ah.top] acme: Could not find solver for: tls-alpn-01
2025/04/11 05:16:53 [INFO] [0559ah.top] acme: Could not find solver for: http-01
2025/04/11 05:16:53 [INFO] [0559ah.top] acme: use dns-01 solver
2025/04/11 05:16:53 [INFO] [*.0559ah.top] acme: Preparing to solve DNS-01
2025/04/11 05:16:56 [INFO] [0559ah.top] acme: Preparing to solve DNS-01
2025/04/11 05:16:57 [INFO] [*.0559ah.top] acme: Trying to solve DNS-01
2025/04/11 05:16:57 [INFO] [*.0559ah.top] acme: Checking DNS record propagation. [nameservers=192.168.1.1:53,[2a02:842b:5a8:b601:ce19:a8ff:fe05:c8ff]:53]
2025/04/11 05:16:59 [INFO] Wait for propagation [timeout: 1m0s, interval: 2s]
2025/04/11 05:17:06 [INFO] [*.0559ah.top] The server validated our request
2025/04/11 05:17:06 [INFO] [0559ah.top] acme: Trying to solve DNS-01
2025/04/11 05:17:06 [INFO] [0559ah.top] acme: Checking DNS record propagation. [nameservers=192.168.1.1:53,[2a02:842b:5a8:b601:ce19:a8ff:fe05:c8ff]:53]
2025/04/11 05:17:08 [INFO] Wait for propagation [timeout: 1m0s, interval: 2s]
2025/04/11 05:17:13 [INFO] [0559ah.top] The server validated our request
2025/04/11 05:17:13 [INFO] [*.0559ah.top] acme: Cleaning DNS-01 challenge
2025/04/11 05:17:15 [INFO] [0559ah.top] acme: Cleaning DNS-01 challenge
2025/04/11 05:17:17 [INFO] [*.0559ah.top, 0559ah.top] acme: Validations succeeded; requesting certificates
2025/04/11 05:17:17 [INFO] Wait for certificate [timeout: 30s, interval: 500ms]
2025/04/11 05:17:20 [INFO] [*.0559ah.top] Server responded with a certificate. Thank you for the account and the domain. You can delete it now. |
The PR will be reviewed and merged in a few days. |
go mod tidy
Ping @hgc357341051, can you run the command (with your domain, email, credentials, etc.)?
Closes #2504
How to test this PR?
git clone https://github.com/ldez/lego.git cd lego git checkout feat/baiducloud
make
:make build
make
:go build -o dist/lego ./cmd/lego