mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-09 08:32:09 +08:00
Updated Validity (markdown)
21
Validity.md
21
Validity.md
@@ -60,18 +60,18 @@ acme.sh --issue -d example.com --dns dns_cf --valid-from "2022-04-01T08:10:
|
||||
|
||||
```
|
||||
|
||||
The cert time will be valid start from `"2022-04-01T08:10:33Z"`.
|
||||
The cert time will be valid starting from `"2022-04-01T08:10:33Z"`.
|
||||
|
||||
You can also use the relative time format:
|
||||
|
||||
```
|
||||
|
||||
#The cert will be valid after 2 hours:
|
||||
#The cert will be valid in 2 hours:
|
||||
|
||||
acme.sh --issue -d example.com --dns dns_cf --valid-from "+2h"
|
||||
|
||||
|
||||
#The cert will be valid after 1 day:
|
||||
#The cert will be valid in 1 day:
|
||||
|
||||
acme.sh --issue -d example.com --dns dns_cf --valid-from "+1d"
|
||||
|
||||
@@ -81,6 +81,21 @@ acme.sh --issue -d example.com --dns dns_cf --valid-from "+1d"
|
||||
|
||||
|
||||
|
||||
### 3. You can use them both at the same time:
|
||||
|
||||
```
|
||||
# The cert will be valid from `"2022-04-01T08:10:33Z"`, and then live for 40 days to expire:
|
||||
|
||||
acme.sh --issue -d example.com --dns dns_cf --valid-from "2022-04-01T08:10:33Z" --valid-to "+40d"
|
||||
|
||||
|
||||
# The cert will be valid in 2 hours, and then live for 50 days to expire:
|
||||
|
||||
acme.sh --issue -d example.com --dns dns_cf --valid-from "+2h" --valid-to "+50d"
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user