xiaoyaofei 发表于 2018-4-20 17:17:25

1.5 一键 Let'sEncrypt SSL证书添加 问题

军哥帮忙看下,域名是godaddy的 尝试了几次一直没成功,完整日志见附件。
_post_url='https://api.godaddy.com/v1/domains/mini12.com/records/TXT/_acme-challenge.www'
_CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header-g '
_ret='0'
Add txt record error.

Error add txt for domain:_acme-challenge.www.mini12.com
pid
No need to restore nginx, skip.
_clearupdns
skip dns.
_on_issue_err
Please check log file for more details: /usr/local/acme.sh/acme.sh.log
url='https://acme-v01.api.letsencrypt.org/acme/challenge/iZZGm0j0gn4xssIIFXB82mCA59EJEP7Ds3HmfXpnnTk/4298334717'
payload='{"resource": "challenge", "keyAuthorization": "8Myv9r23_90Rl85X91iadarTPZP8JfmgNyOKR6ty50k.v0X86Qxq31amm-SNCf4GMdeMFQFiNP2bEYTw7wD3K5Q"}'
POST
_post_url='https://acme-v01.api.letsencrypt.org/acme/challenge/iZZGm0j0gn4xssIIFXB82mCA59EJEP7Ds3HmfXpnnTk/4298334717'
_CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header-g '
_ret='0'
code='202'

[ 本帖最后由 xiaoyaofei 于 2018-4-23 11:29 编辑 ]

licess 发表于 2018-4-20 20:31:06

不大清楚什么原因,看官网上godaddy的api变动过
可以执行
/usr/local/acme.sh/acme.sh --upgrade
sed -i 's/cat "\$CERT_PATH"$/#cat "\$CERT_PATH"/g' /usr/local/acme.sh/acme.sh
升级一下再试
另外你不生成泛域名的话没必要用dns的,直接 lnmp vhost add 或 lnmp ssl add 使用http认证就可以
页: [1]
查看完整版本: 1.5 一键 Let'sEncrypt SSL证书添加 问题