778741b2f8
- Change the behavior of the `sq certify`, `sq key generate` and `sq link add` subcommands to rely on a single `--expiry` input argument (same as `sq key subkey generate`), which replaces `--expires` and `--expires-in`. This allows to directly parse a specific ISO 8601 timestamp, a custom duration or `"never"` and create a verified data type that can be used further. - Use `Expiry::as_duration()` in `sq certify` and `sq key` subcommands to calculate the validity (duration until expiration) of certifications and keys. - Add the constants `KEY_VALIDITY_IN_YEARS` and `THIRD_PARTY_CERTIFICATION_VALIDITY_IN_YEARS` to `sq_cli` to allow centralized modifications of the default validity duration of keys and certifications (in years). - Add the constants `KEY_VALIDITY_DURATION` and `THIRD_PARTY_CERTIFICATION_VALIDITY_DURATION` to provide the default `Duration` for keys/subkeys and third party certifications (based on `KEY_VALIDITY_IN_YEARS` and `THIRD_PARTY_CERTIFICATION_VALIDITY_IN_YEARS`). |
||
---|---|---|
.. | ||
data | ||
sq-certify.rs | ||
sq-decrypt.rs | ||
sq-encrypt.rs | ||
sq-export.rs | ||
sq-import.rs | ||
sq-key-adopt.rs | ||
sq-key-generate.rs | ||
sq-key-subkey.rs | ||
sq-link.rs | ||
sq-packet-decrypt.rs | ||
sq-packet-dump.rs | ||
sq-revoke.rs | ||
sq-sign.rs | ||
sq-subplot.rs | ||
sq-wot.rs |