VPS侦探论坛

 找回密码
 注册
查看: 3316|回复: 9

军哥 SSL dns api更新问题

[复制链接]
发表于 2019-11-17 13:52:56 | 显示全部楼层 |阅读模式

军哥,我用的是namesilo, 因为一个注册了多个域名,之前有网站设置的通配符,ssl  API,  看到一个API 可对应多个域名,现在想添加新的网站,可是旧的API在namesilo上不可看,只能重新生成。

两个问题,
1、我是否能在LNMP中找到原来的API export Namesilo_Key="04bacab5eae....",如果能找到,我直接用旧的API,可是反复找日志也找不到;
2、如果我重新生成,那么旧的已经设置的API通配符SSl的我该如何更新呢,烦请解答,谢谢。

namesilo
export Namesilo_Key="123456"

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-11-17 18:53:33 | 显示全部楼层


api的信息都保存在 /usr/local/acme.sh/account.conf 中,虽然namesilo换新版了,但是老版的api界面还是有的,https://www.vpser.net/manage/lnm ... card-ssl-howto.html 这里面都有老版的链接
重新生成了新的api可以,直接修改 /usr/local/acme.sh/account.conf 中的设置
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-11-18 06:23:52 | 显示全部楼层

@军哥,按照你上面的指引,找到了API Key,
执行
LNMP dnsssl namesilo

最后出现了这个,请问我该怎么弄呢,谢谢。
[Mon Nov 18 06:07:44 CST 2019] Unable to find domain specified.
[Mon Nov 18 06:07:44 CST 2019] Error add txt for domain:_acme-challenge.***.com
[Mon Nov 18 06:07:44 CST 2019] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
Let's Encrypt SSL Certificate create failed!

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-11-18 08:36:02 | 显示全部楼层



SKYIDEA 发表于 2019-11-18 06:23
@军哥,按照你上面的指引,找到了API Key,
执行
LNMP dnsssl namesilo

/usr/local/acme.sh/acme.sh --upgrade 升级一下再试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-11-18 09:01:19 | 显示全部楼层

我装的的是新版的 执行升级

[root@kvm-BustlingAlert-VM ~]# /usr/local/acme.sh/acme.sh --upgrade
[Mon Nov 18 08:59:32 CST 2019] Installing from online archive.
[Mon Nov 18 08:59:32 CST 2019] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Mon Nov 18 08:59:33 CST 2019] Extracting master.tar.gz
[Mon Nov 18 08:59:33 CST 2019] It is recommended to install socat first.
[Mon Nov 18 08:59:33 CST 2019] We use socat for standalone server if you use standalone mode.
[Mon Nov 18 08:59:33 CST 2019] If you don't use standalone mode, just ignore this warning.
[Mon Nov 18 08:59:33 CST 2019] Installing to /usr/local/acme.sh
[Mon Nov 18 08:59:33 CST 2019] Installed to /usr/local/acme.sh/acme.sh
[Mon Nov 18 08:59:33 CST 2019] Good, bash is found, so change the shebang to use bash as preferred.
[Mon Nov 18 08:59:35 CST 2019] OK
[Mon Nov 18 08:59:35 CST 2019] Install success!
[Mon Nov 18 08:59:35 CST 2019] Upgrade success!

再次执行 LNMP dnsssl namesilo,还是同样的错,错误日志如下:
[Mon Nov 18 08:48:53 CST 2019] Unable to find domain specified.
[Mon Nov 18 08:48:53 CST 2019] Error add txt for domain:_acme-challenge.*.com
[Mon Nov 18 08:48:53 CST 2019] _on_issue_err
[Mon Nov 18 08:48:53 CST 2019] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
[Mon Nov 18 08:48:53 CST 2019] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1284478275/IApj_A'
[Mon Nov 18 08:48:53 CST 2019] payload='{}'
[Mon Nov 18 08:48:53 CST 2019] POST
[Mon Nov 18 08:48:53 CST 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1284478275/IApj_A'
[Mon Nov 18 08:48:53 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Mon Nov 18 08:48:53 CST 2019] _ret='0'
[Mon Nov 18 08:48:53 CST 2019] code='200'
[Mon Nov 18 08:48:53 CST 2019] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1286422106/9umL-w'

军哥运维代购:http://shop63846532.taobao.com/

发表于 2019-11-18 11:09:18 | 显示全部楼层

发acme.sh.log 的日志看一下
 楼主| 发表于 2019-11-18 11:20:49 | 显示全部楼层



这个是日志的内容

[Mon Nov 18 08:48:50 CST 2019] _saved_account_key_hash is not changed, skip register account.
[Mon Nov 18 08:48:50 CST 2019] Read key length:
[Mon Nov 18 08:48:50 CST 2019] _createcsr
[Mon Nov 18 08:48:50 CST 2019] Multi domain='DNS:beoops.com,DNS:*.beoops.com'
[Mon Nov 18 08:48:50 CST 2019] Getting domain auth token for each domain
[Mon Nov 18 08:48:50 CST 2019] d='*.beoops.com'
[Mon Nov 18 08:48:50 CST 2019] d
[Mon Nov 18 08:48:50 CST 2019] url='https://acme-v02.api.letsencrypt.org/acme/new-order'
[Mon Nov 18 08:48:50 CST 2019] payload='{"identifiers": [{"type":"dns","value":"beoops.com"},{"type":"dns","value":"*.beoops.com"}]}'
[Mon Nov 18 08:48:50 CST 2019] RSA key
[Mon Nov 18 08:48:50 CST 2019] HEAD
[Mon Nov 18 08:48:50 CST 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
[Mon Nov 18 08:48:50 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g  -I  '
[Mon Nov 18 08:48:50 CST 2019] _ret='0'
[Mon Nov 18 08:48:50 CST 2019] POST
[Mon Nov 18 08:48:50 CST 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-order'
[Mon Nov 18 08:48:50 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Mon Nov 18 08:48:51 CST 2019] _ret='0'
[Mon Nov 18 08:48:51 CST 2019] code='201'
[Mon Nov 18 08:48:51 CST 2019] Le_LinkOrder='https://acme-v02.api.letsencrypt.org/acme/order/71942066/1537284284'
[Mon Nov 18 08:48:51 CST 2019] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/71942066/1537284284'
[Mon Nov 18 08:48:51 CST 2019] url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/1284478275'
[Mon Nov 18 08:48:51 CST 2019] payload
[Mon Nov 18 08:48:51 CST 2019] POST
[Mon Nov 18 08:48:51 CST 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/1284478275'
[Mon Nov 18 08:48:51 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Mon Nov 18 08:48:51 CST 2019] _ret='0'
[Mon Nov 18 08:48:51 CST 2019] code='200'
[Mon Nov 18 08:48:51 CST 2019] url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/1286422106'
[Mon Nov 18 08:48:51 CST 2019] payload
[Mon Nov 18 08:48:51 CST 2019] POST
[Mon Nov 18 08:48:51 CST 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/1286422106'
[Mon Nov 18 08:48:51 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Mon Nov 18 08:48:52 CST 2019] _ret='0'
[Mon Nov 18 08:48:52 CST 2019] code='200'
[Mon Nov 18 08:48:52 CST 2019] d='beoops.com'
[Mon Nov 18 08:48:52 CST 2019] Getting webroot for domain='beoops.com'
[Mon Nov 18 08:48:52 CST 2019] _w='dns_namesilo'
[Mon Nov 18 08:48:52 CST 2019] _currentRoot='dns_namesilo'
[Mon Nov 18 08:48:52 CST 2019] entry='"type":"dns-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/1284478275/IApj_A","token":"dz0-1XDgymwV6raX15XxYIt_aONdKQOFQkEquOaqKng"'
[Mon Nov 18 08:48:52 CST 2019] token='dz0-1XDgymwV6raX15XxYIt_aONdKQOFQkEquOaqKng'
[Mon Nov 18 08:48:52 CST 2019] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1284478275/IApj_A'
[Mon Nov 18 08:48:52 CST 2019] keyauthorization='dz0-1XDgymwV6raX15XxYIt_aONdKQOFQkEquOaqKng.5B8wLkZqsw3AjWb4D3gH6L4BRNDBW8cPwgu3OyY_CdI'
[Mon Nov 18 08:48:52 CST 2019] beoops.com is already verified.
[Mon Nov 18 08:48:52 CST 2019] keyauthorization='verified_ok'
[Mon Nov 18 08:48:52 CST 2019] dvlist='beoops.com#verified_ok#https://acme-v02.api.letsencrypt.org/acme/chall-v3/1284478275/IApj_A#dns-01#dns_namesilo'
[Mon Nov 18 08:48:52 CST 2019] d='*.beoops.com'
[Mon Nov 18 08:48:52 CST 2019] Getting webroot for domain='*.beoops.com'
[Mon Nov 18 08:48:52 CST 2019] _w='dns_namesilo'
[Mon Nov 18 08:48:52 CST 2019] _currentRoot='dns_namesilo'
[Mon Nov 18 08:48:52 CST 2019] entry='"type":"dns-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/1286422106/9umL-w","token":"ZuwDYlRebe_fbAo3n6C-qMtmcGPqkfymXliQ2twFIzw"'
[Mon Nov 18 08:48:52 CST 2019] token='ZuwDYlRebe_fbAo3n6C-qMtmcGPqkfymXliQ2twFIzw'
[Mon Nov 18 08:48:52 CST 2019] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1286422106/9umL-w'
[Mon Nov 18 08:48:52 CST 2019] keyauthorization='ZuwDYlRebe_fbAo3n6C-qMtmcGPqkfymXliQ2twFIzw.5B8wLkZqsw3AjWb4D3gH6L4BRNDBW8cPwgu3OyY_CdI'
[Mon Nov 18 08:48:52 CST 2019] dvlist='*.beoops.com#ZuwDYlRebe_fbAo3n6C-qMtmcGPqkfymXliQ2twFIzw.5B8wLkZqsw3AjWb4D3gH6L4BRNDBW8cPwgu3OyY_CdI#https://acme-v02.api.letsencrypt.org/acme/chall-v3/1286422106/9umL-w#dns-01#dns_namesilo'
[Mon Nov 18 08:48:52 CST 2019] d
[Mon Nov 18 08:48:52 CST 2019] vlist='beoops.com#verified_ok#https://acme-v02.api.letsencrypt.org/acme/chall-v3/1284478275/IApj_A#dns-01#dns_namesilo,*.beoops.com#ZuwDYlRebe_fbAo3n6C-qMtmcGPqkfymXliQ2twFIzw.5B8wLkZqsw3AjWb4D3gH6L4BRNDBW8cPwgu3OyY_CdI#https://acme-v02.api.letsencrypt.org/acme/chall-v3/1286422106/9umL-w#dns-01#dns_namesilo,'
[Mon Nov 18 08:48:52 CST 2019] d='beoops.com'
[Mon Nov 18 08:48:52 CST 2019] beoops.com is already verified, skip dns-01.
[Mon Nov 18 08:48:52 CST 2019] d='*.beoops.com'
[Mon Nov 18 08:48:52 CST 2019] _d_alias
[Mon Nov 18 08:48:52 CST 2019] txtdomain='_acme-challenge.beoops.com'
[Mon Nov 18 08:48:52 CST 2019] txt='hxaqX9OxpK1DkTc5Fp2J7WXp4tPsYse8bIrI2Vi0kLw'
[Mon Nov 18 08:48:52 CST 2019] d_api='/usr/local/acme.sh/dnsapi/dns_namesilo.sh'
[Mon Nov 18 08:48:52 CST 2019] Found domain api file: /usr/local/acme.sh/dnsapi/dns_namesilo.sh
[Mon Nov 18 08:48:52 CST 2019] Adding txt value: hxaqX9OxpK1DkTc5Fp2J7WXp4tPsYse8bIrI2Vi0kLw for domain:  _acme-challenge.beoops.com
[Mon Nov 18 08:48:52 CST 2019] GET
[Mon Nov 18 08:48:52 CST 2019] url='https://www.namesilo.com/api/listDomains?version=1&type=xml&key=04bacab5eae0ccc885518c2028ae06f6e020'
[Mon Nov 18 08:48:52 CST 2019] timeout=
[Mon Nov 18 08:48:52 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Mon Nov 18 08:48:53 CST 2019] ret='0'
[Mon Nov 18 08:48:53 CST 2019] host='beoops.com'
[Mon Nov 18 08:48:53 CST 2019] Unable to find domain specified.
[Mon Nov 18 08:48:53 CST 2019] Error add txt for domain:_acme-challenge.beoops.com
[Mon Nov 18 08:48:53 CST 2019] _on_issue_err
[Mon Nov 18 08:48:53 CST 2019] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
[Mon Nov 18 08:48:53 CST 2019] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1284478275/IApj_A'
[Mon Nov 18 08:48:53 CST 2019] payload='{}'
[Mon Nov 18 08:48:53 CST 2019] POST
[Mon Nov 18 08:48:53 CST 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1284478275/IApj_A'
[Mon Nov 18 08:48:53 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Mon Nov 18 08:48:53 CST 2019] _ret='0'
[Mon Nov 18 08:48:53 CST 2019] code='200'
[Mon Nov 18 08:48:53 CST 2019] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1286422106/9umL-w'
[Mon Nov 18 08:48:53 CST 2019] payload='{}'
[Mon Nov 18 08:48:53 CST 2019] POST
[Mon Nov 18 08:48:53 CST 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/1286422106/9umL-w'
[Mon Nov 18 08:48:53 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Mon Nov 18 08:48:53 CST 2019] _ret='0'
[Mon Nov 18 08:48:54 CST 2019] code='200'
[Mon Nov 18 08:48:54 CST 2019] pid
[Mon Nov 18 08:48:54 CST 2019] No need to restore nginx, skip.
[Mon Nov 18 08:48:54 CST 2019] _clearupdns
[Mon Nov 18 08:48:54 CST 2019] dns_entries
[Mon Nov 18 08:48:54 CST 2019] skip dns.
[Mon Nov 18 08:59:32 CST 2019] Running cmd: upgrade
[Mon Nov 18 08:59:32 CST 2019] Using config home:/usr/local/acme.sh
[Mon Nov 18 08:59:32 CST 2019] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Mon Nov 18 08:59:32 CST 2019] Installing from online archive.
[Mon Nov 18 08:59:32 CST 2019] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Mon Nov 18 08:59:32 CST 2019] GET
[Mon Nov 18 08:59:32 CST 2019] url='https://github.com/Neilpang/acme.sh/archive/master.tar.gz'
[Mon Nov 18 08:59:32 CST 2019] timeout=
[Mon Nov 18 08:59:32 CST 2019] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Mon Nov 18 08:59:33 CST 2019] ret='0'
[Mon Nov 18 08:59:33 CST 2019] Extracting master.tar.gz
[Mon Nov 18 08:59:33 CST 2019] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Mon Nov 18 08:59:33 CST 2019] Skip install cron job
[Mon Nov 18 08:59:33 CST 2019] It is recommended to install socat first.
[Mon Nov 18 08:59:33 CST 2019] We use socat for standalone server if you use standalone mode.
[Mon Nov 18 08:59:33 CST 2019] If you don't use standalone mode, just ignore this warning.
[Mon Nov 18 08:59:33 CST 2019] Installing to /usr/local/acme.sh
[Mon Nov 18 08:59:33 CST 2019] Installed to /usr/local/acme.sh/acme.sh
[Mon Nov 18 08:59:33 CST 2019] Good, bash is found, so change the shebang to use bash as preferred.
[Mon Nov 18 08:59:35 CST 2019] OK
[Mon Nov 18 08:59:35 CST 2019] Install success!
[Mon Nov 18 08:59:35 CST 2019] Upgrade success!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-11-18 12:23:25 | 显示全部楼层

SKYIDEA 发表于 2019-11-18 11:20
这个是日志的内容

[Mon Nov 18 08:48:50 CST 2019] _saved_account_key_hash is not changed, skip regi ...

有可能api的key是错误的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-11-18 12:25:20 | 显示全部楼层

本帖最后由 SKYIDEA 于 2019-11-18 12:26 编辑

军哥,那我如果重新生成Key的,那我旧的以前配置好的API网站需要怎么操作呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-11-18 20:03:24 | 显示全部楼层



SKYIDEA 发表于 2019-11-18 12:25
军哥,那我如果重新生成Key的,那我旧的以前配置好的API网站需要怎么操作呢? ...

account.conf 中删除包含api key的行,重新按添加教程,export 参数哪些
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-20 17:14 , Processed in 0.028806 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表