安装ssl报错
# lnmp onlyssl ali+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
/usr/local/acme.sh/acme.sh
Please enter domain(example: lnmp.org): ***.com
Your domain: **.com
Enter more domain name(example: *.lnmp.org): *.***.com
domain list: *.****.com
Starting create SSL Certificate use Let's Encrypt...
Using CA: https://acme-v02.api.letsencrypt.org/directory
Creating domain key
The domain key is here: /usr/local/nginx/conf/ssl/***.com/****.com.key
Multi domain='DNS:***.com,DNS:*.***.com'
Getting domain auth token for each domain
Getting webroot for domain='***.com'
Getting webroot for domain='*.***.com'
Adding txt value: 7hqO22yDwC5aIpbF5UwPqvQUvznHajB4pbpUjGrUkQ0 for domain:_acme-challenge.***.com
You don't specify aliyun api key and secret yet.
Error add txt for domain:_acme-challenge.****.com
Please check log file for more details: /usr/local/acme.sh/acme.sh.log
Let's Encrypt SSL Certificate create failed!
acme.sh.log 文件内容
补充内容 (2021-4-9 11:50):
_ret='0'
code='200'
d='****.com'
Getting webroot for domain='****.com'
_... _ret='0'
code='200'
d='****.com'
Getting webroot for domain='****.com'
_w='dns_ali'
_currentRoot='dns_ali'
entry='"type":"dns-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847346/O2WNqQ","token":"cQ_hrp4QVnPy8KcerWW5q2ZYiQrrch_T3RqXMUw-IKw"'
token='cQ_hrp4QVnPy8KcerWW5q2ZYiQrrch_T3RqXMUw-IKw'
uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847346/O2WNqQ'
keyauthorization='cQ_hrp4QVnPy8KcerWW5q2ZYiQrrch_T3RqXMUw-IKw.NuI2JEVo4tmNWySKfO66rXvcNa2nYH6QZlMesWwnuls'
dvlist='****.com#cQ_hrp4QVnPy8KcerWW5q2ZYiQrrch_T3RqXMUw-IKw.NuI2JEVo4tmNWySKfO66rXvcNa2nYH6QZlMesWwnuls#https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847346/O2WNqQ#dns-01#dns_ali'
d='*.****.com'
Getting webroot for domain='*.****.com'
_w='dns_ali'
_currentRoot='dns_ali'
entry='"type":"dns-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847345/tpNyig","token":"0JXm4F9EJuFjmZDzgl1pHA6jBY7dPVsd7mUM408TFPc"'
token='0JXm4F9EJuFjmZDzgl1pHA6jBY7dPVsd7mUM408TFPc'
uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847345/tpNyig'
keyauthorization='0JXm4F9EJuFjmZDzgl1pHA6jBY7dPVsd7mUM408TFPc.NuI2JEVo4tmNWySKfO66rXvcNa2nYH6QZlMesWwnuls'
dvlist='*.****.com#0JXm4F9EJuFjmZDzgl1pHA6jBY7dPVsd7mUM408TFPc.NuI2JEVo4tmNWySKfO66rXvcNa2nYH6QZlMesWwnuls#https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847345/tpNyig#dns-01#dns_ali'
d
vlist='****.com#cQ_hrp4QVnPy8KcerWW5q2ZYiQrrch_T3RqXMUw-IKw.NuI2JEVo4tmNWySKfO66rXvcNa2nYH6QZlMesWwnuls#https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847346/O2WNqQ#dns-01#dns_ali,*.****.com#0JXm4F9EJuFjmZDzgl1pHA6jBY7dPVsd7mUM408TFPc.NuI2JEVo4tmNWySKfO66rXvcNa2nYH6QZlMesWwnuls#https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847345/tpNyig#dns-01#dns_ali,'
d='****.com'
_d_alias
txtdomain='_acme-challenge.****.com'
txt='7hqO22yDwC5aIpbF5UwPqvQUvznHajB4pbpUjGrUkQ0'
d_api='/usr/local/acme.sh/dnsapi/dns_ali.sh'
Found domain api file: /usr/local/acme.sh/dnsapi/dns_ali.sh
Adding txt value: 7hqO22yDwC5aIpbF5UwPqvQUvznHajB4pbpUjGrUkQ0 for domain:_acme-challenge.****.com
You don't specify aliyun api key and secret yet.
Error add txt for domain:_acme-challenge.****.com
_on_issue_err
Please check log file for more details: /usr/local/acme.sh/acme.sh.log
url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847346/O2WNqQ'
payload='{}'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847346/O2WNqQ'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g '
_ret='0'
code='200'
url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847345/tpNyig'
payload='{}'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/12194847345/tpNyig'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g '
_ret='0'
code='200'
pid
No need to restore nginx, skip.
_clearupdns
dns_entries
skip dns.
上面已经提示了 You don't specify aliyun api key and secret yet.
你没export api信息 谢军哥,已解决。
页:
[1]