xdtianyu / scripts

scripts for work
https://www.xdty.org
1.03k stars 245 forks source link

大哥求指路,生成的.crt文件是空的 #49

Open tttlkkkl opened 6 years ago

tttlkkkl commented 6 years ago

配好nginx后报错: nginx: [emerg] PEM_read_bio_X509_AUX("/ca/lihuasheng.crt") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE) nginx: configuration file /etc/nginx/nginx.conf test failed

xdtianyu commented 6 years ago

/ca/ 这个目录存在吗?或者是不是没有写入的权限?

tttlkkkl commented 6 years ago

有存在的,全程root操作,/ca/lihuasheng.crt这个文件也建立起来了但是是空的。我怀疑我操作太频繁被禁止颁发证书了,用脚本之前倒腾caddy了一晚上。明天再试……谢谢大哥。

tttlkkkl commented 6 years ago

对了,我python版本是Python 2.7.5不会跟这个有关系吧

xdtianyu commented 6 years ago

应该没关系,2.7.+就可以了

tttlkkkl commented 6 years ago

现在进一步了,报错如下: { "type": "http-01", "status": "invalid", "error": { "type": "urn:acme:error:connection", "detail": "DNS problem: SERVFAIL looking up A for lihuasheng.cn", "status": 400 }, "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/bDednsgB_np9iMMcCeZrDreCbEC7kNz7HvwXl5nRRNI/1915060345", "token": "TLeLtZSm8OoUlHyyevbJBCQBFfWMsPoNwgKj3Vj6pCY", "keyAuthorization": "TLeLtZSm8OoUlHyyevbJBCQBFfWMsPoNwgKj3Vj6pCY.TQom5iWjlU5jeupOSYuepjpirS3NlVSyBOy_V5byivQ", "validationRecord": [ { "url": "http://lihuasheng.cn/.well-known/acme-challenge/TLeLtZSm8OoUlHyyevbJBCQBFfWMsPoNwgKj3Vj6pCY", "hostname": "lihuasheng.cn", "port": "80", "addressesResolved": [], "addressUsed": "", "addressesTried": [] } ] }

这个是说他找不到我这个域名?我阿里云的服务器,域名是花生壳解析的。