Change 'sq wkd generate' to respect --time
- Change `sq wkd generate` to respect `--time` when checking certificate validity.
This commit is contained in:
parent
47447cd7d0
commit
62493558c5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user