feat: v1.7.2
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -320,7 +320,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "card-cli"
|
||||
version = "1.7.1"
|
||||
version = "1.7.2"
|
||||
dependencies = [
|
||||
"authenticator",
|
||||
"base64 0.21.2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "card-cli"
|
||||
version = "1.7.1"
|
||||
version = "1.7.2"
|
||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
|
||||
@@ -52,10 +52,20 @@ impl Command for CommandImpl {
|
||||
}
|
||||
|
||||
match yk.piv_keys() {
|
||||
Ok(keys) => {
|
||||
Ok(mut keys) => {
|
||||
information!("Found {} PIV keys", keys.len());
|
||||
keys.sort_by_key(|a| u8::from(a.slot()));
|
||||
for k in keys {
|
||||
information!(
|
||||
"Found PIV #{:x} @{}, subject: {}, signature: {}",
|
||||
u8::from(k.slot()),
|
||||
k.slot(),
|
||||
k.certificate().subject(),
|
||||
k.certificate().cert.signature_algorithm.oid
|
||||
);
|
||||
if detail_output {
|
||||
keys.iter().for_each(|k| debugging!("Found key: {:?}", k));
|
||||
debugging!("Found key: {:?}", k);
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(e) => failure!("Get PIV keys failed: {}", e)
|
||||
|
||||
Reference in New Issue
Block a user