Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 --valid-to 参数且证书有效期小于 60 天时,证书仅会在过期时才续期 #4248

Closed
ZeroClover opened this issue Aug 16, 2022 · 5 comments
Labels

Comments

@ZeroClover
Copy link

使用 --valid-to '+7d'参数签发证书后,发现脚本设置的续期时间刚好是证书的到期时间。

使用 --valid-to '+8d' --days 7 参数指定续期时间比证书有效期提前 1 天,但查看配置文件看到续期时间仍然是证书的到期时间

@Neilpang
Copy link
Member

不要把 --days--valid-to 混用.
推荐使用 --valid-to, 它真正实现了协议. --days 只是设定 renew 的日期, 并不改变 证书的有效期.

@ZeroClover
Copy link
Author

ZeroClover commented Aug 17, 2022

@Neilpang 我的意思是我没法做到在证书过期之前让脚本自动续期证书。当我使用 --valid-to '+7d' 签发了证书后,证书的过期时间是 7 天,但脚本也只会在 7 天后才续期证书,这意味着一定会有服务中断的时间。

image

image

@Neilpang Neilpang added the bug label Aug 17, 2022
@Neilpang
Copy link
Member

修了, 小于24小时的证书,会提前一小时更新,
否则 会提前一天更新.

@ZeroClover
Copy link
Author

这个修复预计什么时候提交到主分支呢

@Neilpang
Copy link
Member

已经 merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants