-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Validity
neil edited this page Apr 1, 2022
·
12 revisions
The ACME protocol supported the NotBefore
and NotAfter
fields of the cert.
And some of the CAs supported this feature. (The Letsencrypt CA doesn't support it for now)
There are 2 command options to use:
- The
--valid-to <date time>
option, which is forNotAfter
field. - The
--valid-from <date time>
option, which is forNotBeofre
field.
Usage:
acme.sh --issue -d example.com -dns dns_cf --valid-to "2022-04-01T08:10:33Z"
The value of --valid-to
is an absolute date time in the future. The issued cert will expire on that time(NotAfter
).
Please be careful about the date time format, it Must be exact format used above.
Buy me a beer, Donate to acme.sh if it saves your time. Your donation makes acme.sh better: https://donate.acme.sh/
如果 acme.sh 帮你节省了时间,请考虑赏我一杯啤酒🍺, 捐助: https://donate.acme.sh/ 你的支持将会使得 acme.sh 越来越好. 感谢