Improve compatibility with ISO 7816-compliant PIV devices (#663)

This commit is contained in:
Johannes Herforth
2026-05-11 20:36:36 +02:00
committed by GitHub
parent 6c12c7b187
commit ca2615eef8
2 changed files with 29 additions and 3 deletions
+7 -1
View File
@@ -599,7 +599,13 @@ impl Key {
};
if !buf.is_empty() {
let cert = Certificate::from_bytes(buf)?;
let cert = match Certificate::from_bytes(buf) {
Ok(c) => c,
Err(e) => {
debug!("error parsing certificate in slot {:?}: {}", slot, e);
continue;
}
};
keys.push(Key { slot, cert });
}
}