diff --git a/Validity.md b/Validity.md index 042ff6f..03b9047 100644 --- a/Validity.md +++ b/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" + +``` + +