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

cloudxns已接管./le-cloudxns.sh cloudxns.conf依然报错 #37

Closed
ikingi opened this issue Feb 22, 2017 · 16 comments
Closed

cloudxns已接管./le-cloudxns.sh cloudxns.conf依然报错 #37

ikingi opened this issue Feb 22, 2017 · 16 comments

Comments

@ikingi
Copy link

ikingi commented Feb 22, 2017

修改 DOMAIN 为你的根域名 (我修改成***.ml)还是报ERROR CONFIG. 这样的错误。

1
2
3
wenjiancuowu

@xdtianyu
Copy link
Owner

API_KEY="YOUR_API_KEY"
SECRET_KEY="YOUR_SECRET_KEY"
DOMAIN="example.com"
CERT_DOMAINS="example.com www.example.com im.example.com"
#ECC=TRUE

修改 DOMAIN 为你的根域名,修改 CERT_DOMAINS 为您要签的域名列表

@ikingi
Copy link
Author

ikingi commented Feb 22, 2017

DOMAIN="*****.ml"
我也这么修改了。。但是还是同样的错误。

@xdtianyu
Copy link
Owner

请把你完整的 conf 文件内容贴出来吧

@ikingi
Copy link
Author

ikingi commented Feb 22, 2017

大佬,有联系方式吗。。。。

@xdtianyu
Copy link
Owner

ERROR CONFIG. 这个错误是找不到配置文件的提示,请 cat cloudxns.conf 看看有没有这个文件及内容是否正确,另外你上文截图里的配置明显不对, DOMAIN 为什么会是路径地址?

@alstarking
Copy link

已解决。谢谢大佬。正常申请证书报错应该是lnmp1.3的Nginx默认是访问不到.well-known/acme-challenge,将Nginx的
location ~ /.
{
deny all;
}
修改成
location ~ /.well-known {
allow all;
}

就解决了。。刚装了lnmp1.4测试版,这个问题已经不存在了。。lnmp1.4里已经默认加入了/.well-known

@xdtianyu
Copy link
Owner

感谢反馈~

@jameqq
Copy link

jameqq commented Apr 10, 2017

@alstarking lnmp1.3的Nginx的默认配置在哪 我改了还是不行

@ikingi
Copy link
Author

ikingi commented Apr 10, 2017

@tang1989324 /usr/local/nginx/conf/vhost/**.conf

@hifer
Copy link

hifer commented May 19, 2017

ValueError: Wrote file to /data/frontend/.well-known/acme-challenge/VR99TFl4_cSituBUJ310UgeHpS9fwC4oB5GKvjh7LGc, but couldn't download http://test.cscec3b.com.cn/.well-known/acme-challenge/VR99TFl4_cSituBUJ310UgeHpS9fwC4oB5GKvjh7LGc
[root@localhost certs]# ll /data/frontend/.well-known/acme-challenge/VR99TFl4_cSituBUJ310UgeHpS9fwC4oB5GKvjh7LGc
-rw-r--r--. 1 root root 87 May 19 13:26 /data/frontend/.well-known/acme-challenge/VR99TFl4_cSituBUJ310UgeHpS9fwC4oB5GKvjh7LGc

大神,这个文件写进去了 但是还是报down不下来

@xdtianyu
Copy link
Owner

@hifer 试下手动新建个文件在浏览器打开,下载不下来就说明 web 服务器配置有问题

@hifer
Copy link

hifer commented May 19, 2017

手动在浏览器上是能下载下来的,您可以直接下一些这个,我还没删掉 http://test.cscec3b.com.cn/.well-known/acme-challenge/VR99TFl4_cSituBUJ310UgeHpS9fwC4oB5GKvjh7LGc
我把Python删除代码注释掉了,就是想确认下这个

@xdtianyu
Copy link
Owner

@hifer 可以再试下,可能是 le 的服务器访问国内托管的文件时下载失败了

@hifer
Copy link

hifer commented May 19, 2017

@xdtianyu
Generate CSR...test.csr
Parsing account key...
Parsing CSR...
Registering account...
Traceback (most recent call last):
File "/tmp/acme_tiny.py", line 198, in
main(sys.argv[1:])
File "/tmp/acme_tiny.py", line 194, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)
File "/tmp/acme_tiny.py", line 92, in get_crt
raise ValueError("Error registering: {0} {1}".format(code, result))
ValueError: Error registering: 500 {
"type": "urn:acme:error:serverInternal",
"detail": "Failed to get registration by key",
"status": 500
}

@xdtianyu
Copy link
Owner

xdtianyu commented May 19, 2017

@hifer 这个 500 错误是 le 服务器返回的。如果是使用的 cloudxns 托管的 dns,也可以试试用 dns 验证的方式签发证书 https://github.com/xdtianyu/scripts/tree/master/le-dns

@hifer
Copy link

hifer commented May 19, 2017

@xdtianyu 好的,等会试下,多谢了

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

5 participants