VPS侦探论坛

 找回密码
 注册
查看: 186|回复: 1

came.sh证书续期失败的问题

[复制链接]
发表于 2022-6-6 03:05:25 | 显示全部楼层 |阅读模式

手动续期命令:"/usr/local/acme.sh"/acme.sh --cron --home "/usr/local/acme.sh" --force

续期失败,提示 Please update your account with an email address first.
然后执行
  1. "/usr/local/acme.sh"/acme.sh --register-account -m 123456@126.com
复制代码
提示注册成功,然后手动续期,还是不行,依然是上面那个提示。


查看日志:/usr/local/acme.sh/acme.sh.log
完整日志在附件里。这里截取了一少部分
  1. [Thu Feb  4 10:33:46 CST 2021] _init api for server: https://acme-v02.api.letsencrypt.org/directory
  2. [Thu Feb  4 10:33:46 CST 2021] Use default length 2048
  3. [Thu Feb  4 10:33:46 CST 2021] length='2048'
  4. [Thu Feb  4 10:33:46 CST 2021] Using config home:/usr/local/acme.sh
  5. [Thu Feb  4 10:33:46 CST 2021] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
  6. [Thu Feb  4 10:33:46 CST 2021] Use length 2048
  7. [Thu Feb  4 10:33:46 CST 2021] Using RSA: 2048
  8. [Thu Feb  4 10:33:46 CST 2021] Create account key ok.
  9. [Thu Feb  4 10:33:46 CST 2021] RSA key
  10. <u>[Thu Feb  4 10:33:46 CST 2021] config file is empty, can not read CA_EAB_KEY_ID
  11. [Thu Feb  4 10:33:46 CST 2021] config file is empty, can not read CA_EAB_HMAC_KEY
  12. [Thu Feb  4 10:33:46 CST 2021] config file is empty, can not read CA_EMAIL</u>
  13. [Thu Feb  4 10:33:46 CST 2021] Registering account: https://acme-v02.api.letsencrypt.org/directory
复制代码
是不是那三个config file is empty导致的呢?
然后我执行
  1. export ACCOUNT_EMAIL="123456@126.com"
复制代码


然后在手动续期证书就正常了。

请问军哥,这是什么问题导致的呢?


还有个问题,为什么我部分服务器root执行acme.sh提示acme.sh: command not found呢?然后还没找到在哪加全局环境

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云VPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-6-6 19:58:24 | 显示全部楼层


acme.sh升级了,必须要加上一个邮箱才行

使用完整路径执行 /usr/local/acme.sh/acme.sh
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2022-7-6 18:13 , Processed in 0.016083 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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