Improve compatibility with ISO 7816-compliant PIV devices (#663)
This commit is contained in:
committed by
GitHub
parent
6c12c7b187
commit
ca2615eef8
+7
-1
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user