a6855783 发表于 2023-3-2 16:15:02

创建SSL报错,请军哥看一下问题

Running cmd: issue
_main_domain='bjzhinian.com'
_alt_domains='*.bjzhinian.com'
Using config home:/usr/local/acme.sh
ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
DOMAIN_PATH='/usr/local/nginx/conf/ssl/bjzhinian.com'
Using ACME_DIRECTORY: https://acme-v02.api.letsencrypt.org/directory
_init api for server: https://acme-v02.api.letsencrypt.org/directory
GET
url='https://acme-v02.api.letsencrypt.org/directory'
timeout=
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g '
ret='0'
ACME_KEY_CHANGE='https://acme-v02.api.letsencrypt.org/acme/key-change'
ACME_NEW_AUTHZ
ACME_NEW_ORDER='https://acme-v02.api.letsencrypt.org/acme/new-order'
ACME_NEW_ACCOUNT='https://acme-v02.api.letsencrypt.org/acme/new-acct'
ACME_REVOKE_CERT='https://acme-v02.api.letsencrypt.org/acme/revoke-cert'
ACME_AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf'
ACME_NEW_NONCE='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
Using CA: https://acme-v02.api.letsencrypt.org/directory
_on_before_issue
_chk_main_domain='bjzhinian.com'
_chk_alt_domains='*.bjzhinian.com'
Le_LocalAddress
d='bjzhinian.com'
Check for domain='bjzhinian.com'
_currentRoot='dns_ali'
d='*.bjzhinian.com'
Check for domain='*.bjzhinian.com'
_currentRoot='dns_ali'
d
_saved_account_key_hash is not changed, skip register account.
Read key length:2048
Creating domain key
Using config home:/usr/local/acme.sh
ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
Use length 2048
Using RSA: 2048
The domain key is here: /usr/local/nginx/conf/ssl/bjzhinian.com/bjzhinian.com.key
_createcsr
Multi domain='DNS:bjzhinian.com,DNS:*.bjzhinian.com'
Getting domain auth token for each domain
d='*.bjzhinian.com'
d
url='https://acme-v02.api.letsencrypt.org/acme/new-order'
payload='{"identifiers": [{"type":"dns","value":"bjzhinian.com"},{"type":"dns","value":"*.bjzhinian.com"}]}'
RSA key
HEAD
_post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g-I'
_ret='0'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/new-order'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g '
_ret='0'
code='201'
Le_LinkOrder='https://acme-v02.api.letsencrypt.org/acme/order/989296526/167723418606'
Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/989296526/167723418606'
url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/207559606136'
payload
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/207559606136'
_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/authz-v3/207559606146'
payload
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/207559606146'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g '
_ret='0'
code='200'
d='bjzhinian.com'
Getting webroot for domain='bjzhinian.com'
_w='dns_ali'
_currentRoot='dns_ali'
entry='"type":"dns-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606146/UJlcIQ","token":"fckDo3cUsPoh2daSZuKJW2-Xp8qOlJIF6paIDLHfMdc"'
token='fckDo3cUsPoh2daSZuKJW2-Xp8qOlJIF6paIDLHfMdc'
uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606146/UJlcIQ'
keyauthorization='fckDo3cUsPoh2daSZuKJW2-Xp8qOlJIF6paIDLHfMdc.wDpq6eHFVCE4KIB2BVn5E5ksZk4xqa8Ul8dKmZXyi78'
dvlist='bjzhinian.com#fckDo3cUsPoh2daSZuKJW2-Xp8qOlJIF6paIDLHfMdc.wDpq6eHFVCE4KIB2BVn5E5ksZk4xqa8Ul8dKmZXyi78#https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606146/UJlcIQ#dns-01#dns_ali'
d='*.bjzhinian.com'
Getting webroot for domain='*.bjzhinian.com'
_w='dns_ali'
_currentRoot='dns_ali'
entry='"type":"dns-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606136/KjkuSw","token":"Mq4T5-SpiqqWHHW4TAiSMxv0OMmlIUx274ldqD0eyVw"'
token='Mq4T5-SpiqqWHHW4TAiSMxv0OMmlIUx274ldqD0eyVw'
uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606136/KjkuSw'
keyauthorization='Mq4T5-SpiqqWHHW4TAiSMxv0OMmlIUx274ldqD0eyVw.wDpq6eHFVCE4KIB2BVn5E5ksZk4xqa8Ul8dKmZXyi78'
dvlist='*.bjzhinian.com#Mq4T5-SpiqqWHHW4TAiSMxv0OMmlIUx274ldqD0eyVw.wDpq6eHFVCE4KIB2BVn5E5ksZk4xqa8Ul8dKmZXyi78#https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606136/KjkuSw#dns-01#dns_ali'
d
vlist='bjzhinian.com#fckDo3cUsPoh2daSZuKJW2-Xp8qOlJIF6paIDLHfMdc.wDpq6eHFVCE4KIB2BVn5E5ksZk4xqa8Ul8dKmZXyi78#https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606146/UJlcIQ#dns-01#dns_ali,*.bjzhinian.com#Mq4T5-SpiqqWHHW4TAiSMxv0OMmlIUx274ldqD0eyVw.wDpq6eHFVCE4KIB2BVn5E5ksZk4xqa8Ul8dKmZXyi78#https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606136/KjkuSw#dns-01#dns_ali,'
d='bjzhinian.com'
_d_alias
txtdomain='_acme-challenge.bjzhinian.com'
txt='wrmN7u8PwmmcpqkiyitXwXiSipb5S3faLka0Ojk_iCs'
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: wrmN7u8PwmmcpqkiyitXwXiSipb5S3faLka0Ojk_iCs for domain:_acme-challenge.bjzhinian.com
You don't specify aliyun api key and secret yet.
Error add txt for domain:_acme-challenge.bjzhinian.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/207559606146/UJlcIQ'
payload='{}'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606146/UJlcIQ'
_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/207559606136/KjkuSw'
payload='{}'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/207559606136/KjkuSw'
_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.


licess 发表于 2023-3-2 19:54:21

api信息你都没有export咋去给你添加验证记录,具体可以查看一下教程api怎么找及参数都有说明
页: [1]
查看完整版本: 创建SSL报错,请军哥看一下问题