feat: v1.3.2, piv
This commit is contained in:
@@ -10,7 +10,7 @@ use x509_parser::parse_x509_certificate;
|
||||
use yubikey::{Certificate, YubiKey};
|
||||
use yubikey::piv::SlotId;
|
||||
|
||||
use crate::pkiutil::bytes_to_pem;
|
||||
use crate::pkiutil::{bytes_to_pem, get_pki_algorithm};
|
||||
|
||||
pub struct CommandImpl;
|
||||
|
||||
@@ -92,7 +92,10 @@ fn print_cert_info(yubikey: &mut YubiKey, slot: SlotId, detail_output: bool) ->
|
||||
|
||||
match parse_x509_certificate(buf) {
|
||||
Ok((_rem, cert)) => {
|
||||
information!("Algorithm: {}", cert.tbs_certificate.subject_pki.algorithm.algorithm);
|
||||
debugging!("Algorithm: {:?}", &cert.tbs_certificate.subject_pki.algorithm);
|
||||
information!("Algorithm: {:?}", get_pki_algorithm(&cert.tbs_certificate.subject_pki.algorithm));
|
||||
|
||||
debugging!("Public key: {}", hex::encode(&cert.tbs_certificate.subject_pki.subject_public_key));
|
||||
|
||||
let public_key_fingerprint_sha256 = Sha256::digest(cert.tbs_certificate.subject_pki.raw);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user