feat: outputs serial

This commit is contained in:
2023-03-12 08:44:53 +08:00
parent 591154f331
commit 12e24652b7

View File

@@ -45,6 +45,8 @@ fn main() -> XResult<()> {
let reader = readers.iter()?.next().unwrap_or_else(|| failure_and_exit!("No reader!"));
let mut yubikey = reader.open()?;
information!("Yubikey serial: {}", yubikey.serial().0);
let esk = EphemeralSecret::random(&mut OsRng);
let epk = esk.public_key();
let epk_bytes = EphemeralKeyBytes::from_public_key(&epk);