Skip to content
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

提交Let's Encrypt出错 #7

Open
Suxwx opened this issue Apr 21, 2018 · 3 comments
Open

提交Let's Encrypt出错 #7

Suxwx opened this issue Apr 21, 2018 · 3 comments

Comments

@Suxwx
Copy link

Suxwx commented Apr 21, 2018

------------------------------ Let's Encrypt merlin addon by sadog -------------------------------

【2018年04月21日 15:42:55】: 开始为xgholding.com申请证书!
【2018年04月21日 15:42:55】: 证书申请过程可能会持续3分钟,请不要关闭或刷新本网页!
【2018年04月21日 15:42:57】: 使用GoDaddy接口申请证书...
[Sat Apr 21 15:43:04 GMT 2018] Creating domain key
[Sat Apr 21 15:43:06 GMT 2018] The domain key is here: /koolshare/acme/xgholding.com/xgholding.com.key
[Sat Apr 21 15:43:06 GMT 2018] Multi domain='DNS:xgholding.com,DNS:.xgholding.com'
[Sat Apr 21 15:43:06 GMT 2018] Getting domain auth token for each domain
[Sat Apr 21 15:43:13 GMT 2018] Getting webroot for domain='xgholding.com'
[Sat Apr 21 15:43:13 GMT 2018] Getting webroot for domain='
.xgholding.com'
[Sat Apr 21 15:43:14 GMT 2018] Found domain api file: /jffs/.koolshare/acme/dnsapi/dns_gd.sh
[Sat Apr 21 15:43:18 GMT 2018] Adding record
[Sat Apr 21 15:43:20 GMT 2018] Add txt record error.
[Sat Apr 21 15:43:20 GMT 2018] {"code":"UNABLE_TO_AUTHENTICATE","message":"Unauthorized : Could not authenticate API key/secret"}
[Sat Apr 21 15:43:20 GMT 2018] Error add txt for domain:_acme-challenge.xgholding.com
[Sat Apr 21 15:43:20 GMT 2018] Please add '--debug' or '--log' to check more details.
[Sat Apr 21 15:43:20 GMT 2018] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
【2018年04月21日 15:43:24】: 证书申请失败,请检查插件配置、域名等是否正确!!
【2018年04月21日 15:43:24】: 清理相关残留并关闭插件!!

@sadoneli
Copy link
Owner

请注意这句
{"code":"UNABLE_TO_AUTHENTICATE","message":"Unauthorized : Could not authenticate API key/secret"}
你的API key/secret可能有误

@Suxwx
Copy link
Author

Suxwx commented Apr 24, 2018

很奇怪,是插件问题还是啥问题一直没搞清楚,梅林插件一直申请不了,最后在google cloud的vm下申请成功,用的同一个key。
root@instance-4:# export GD_Key="**********************"
root@instance-4:
# export GD_Secret="**************"
root@instance-4:# acme.sh --issue --dns dns_gd -d xgholding.com -d *.xgholding.com
-bash: acme.sh: command not found
root@instance-4:
# ~/.acme.sh/acme.sh --issue --dns dns_gd -d xgholding.com -d .xgholding.com
[Tue Apr 24 15:08:56 UTC 2018] Registering account
[Tue Apr 24 15:08:57 UTC 2018] Registered
[Tue Apr 24 15:08:57 UTC 2018] ACCOUNT_THUMBPRINT='3fz2-rc3eyhm8GT6Zr4XNJfnTLZFA6GGb6Go1K2PtQE'
[Tue Apr 24 15:08:57 UTC 2018] Creating domain key
[Tue Apr 24 15:08:57 UTC 2018] The domain key is here: /root/.acme.sh/xgholding.com/xgholding.com.key
[Tue Apr 24 15:08:57 UTC 2018] Multi domain='DNS:xgholding.com,DNS:
.xgholding.com'
[Tue Apr 24 15:08:57 UTC 2018] Getting domain auth token for each domain
[Tue Apr 24 15:08:58 UTC 2018] Getting webroot for domain='xgholding.com'
[Tue Apr 24 15:08:58 UTC 2018] Getting webroot for domain='.xgholding.com'
[Tue Apr 24 15:08:58 UTC 2018] Found domain api file: /root/.acme.sh/dnsapi/dns_gd.sh
[Tue Apr 24 15:08:59 UTC 2018] Adding record
[Tue Apr 24 15:09:00 UTC 2018] Added, sleeping 10 seconds
[Tue Apr 24 15:09:11 UTC 2018] Found domain api file: /root/.acme.sh/dnsapi/dns_gd.sh
[Tue Apr 24 15:09:13 UTC 2018] Adding record
[Tue Apr 24 15:09:13 UTC 2018] Added, sleeping 10 seconds
[Tue Apr 24 15:09:24 UTC 2018] Sleep 120 seconds for the txt records to take effect
[Tue Apr 24 15:11:26 UTC 2018] Verifying:xgholding.com
[Tue Apr 24 15:11:28 UTC 2018] Success
[Tue Apr 24 15:11:28 UTC 2018] Verifying:
.xgholding.com
[Tue Apr 24 15:11:31 UTC 2018] Success
[Tue Apr 24 15:11:31 UTC 2018] Removing DNS records.
[Tue Apr 24 15:11:35 UTC 2018] Verify finished, start to sign.
[Tue Apr 24 15:11:36 UTC 2018] Cert success.

@Suxwx
Copy link
Author

Suxwx commented Apr 24, 2018

[Wed Apr 25 00:17:53 GMT 2018] Adding record
[Wed Apr 25 00:17:55 GMT 2018] Add txt record error.
[Wed Apr 25 00:17:55 GMT 2018]
[Wed Apr 25 00:17:55 GMT 2018] Error add txt for domain:_acme-challenge.xgholding.com
[Wed Apr 25 00:17:55 GMT 2018] Please add '--debug' or '--log' to check more details.
[Wed Apr 25 00:17:55 GMT 2018] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants