Change 'sq wkd generate' to respect --time

- Change `sq wkd generate` to respect `--time` when checking
    certificate validity.
This commit is contained in:
Neal H. Walfield 2023-03-29 12:48:15 +02:00
parent 47447cd7d0
commit 62493558c5
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3

View File

@ -150,7 +150,7 @@ pub fn dispatch_wkd(config: Config, c: sq_cli::wkd::Command) -> Result<()> {
let certs: Vec<Cert> = parser.filter_map(|cert| cert.ok())
.collect();
for cert in certs {
let vc = match cert.with_policy(policy, None) {
let vc = match cert.with_policy(policy, config.time) {
Ok(vc) => vc,
e @ Err(_) if !skip => e?,
_ => continue,