./vhost.sh 设置https失败

问答中心分类: OneinStack./vhost.sh 设置https失败
Aster asked 4年 ago

 
[Fri Mar 30 17:51:19 CST 2018] Register account Error: {"type":"urn:ietfarams:acme: error:malformed","detail":"Invalid Content-Type header on POST. Content-Type must be \"application/jose+json\"","status": 415}
[Fri Mar 30 17:51:19 CST 2018] Please add '--debug' or '--log' to check more details.
[Fri Mar 30 17:51:19 CST 2018] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
Error: Create Let's Encrypt SSL Certificate failed!
安装oninstack后升级过oneinstack...有输入api key和secret,域名是godaddy的,挂在dnspod解析的

Question Tags:

3 Answers
oneinstack answered 4年 ago

确定是选择的dnspod api吗?
参考如下文档:https://github.com/Neilpang/acme.sh/wiki/How-to-use-lexicon-dns-api

Aster answered 4年 ago
之前DNS provider是gd,DNS provider选择dp是这样的结果
Do you want to redirect all HTTP requests to HTTPS? [y/n]: y
More: https://oneinstack.com/faq/letsencrypt
Please enter your DNS provider: dp
dp,cx,ali,cf,aws,linode,he,namesilo,dgon,freedns,gd,namecom and so on.
Syntax: export Key1=Value1 ; export Key2=Value1
Please enter your dnsapi parameters: export DP_Id="55555" ; export DP_Key="1c3f7d5*************************9a37"
 
[Fri Mar 30 23:21:38 CST 2018] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Fri Mar 30 23:21:38 CST 2018] Can not init api.
[Fri Mar 30 23:21:41 CST 2018] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 3
[Fri Mar 30 23:21:41 CST 2018] Create new order error. Le_OrderFinalize not found.
[Fri Mar 30 23:21:41 CST 2018] Please check log file for more details: /root/.acme.sh/acme.sh.log
Error: Create Let's Encrypt SSL Certificate failed!

api是dnspod的... 

oneinstack answered 4年 ago

手工执行看看:

export DP_Id=id
export DP_Key=key
acme.sh --issue -d example.com -d *.example.com --dns dns_dp