yubikey-cli: bump x509-parser to v0.14 (#441)

This commit is contained in:
Tony Arcieri (iqlusion)
2022-11-14 13:30:55 -07:00
committed by GitHub
parent ccf19a3668
commit 57bb088c7d
3 changed files with 16 additions and 58 deletions
+1 -1
View File
@@ -22,5 +22,5 @@ log = "0.4"
sha2 = "0.10"
subtle-encoding = "0.5"
termcolor = "1"
x509-parser = "0.12"
x509-parser = "0.14"
yubikey = { version = "0.6", path = ".." }
+10 -2
View File
@@ -207,12 +207,20 @@ pub fn print_cert_info(
print_cert_attr(
stream,
"Not Before",
cert.tbs_certificate.validity.not_before.to_rfc2822(),
cert.tbs_certificate
.validity
.not_before
.to_rfc2822()
.unwrap(),
)?;
print_cert_attr(
stream,
"Not After",
cert.tbs_certificate.validity.not_after.to_rfc2822(),
cert.tbs_certificate
.validity
.not_after
.to_rfc2822()
.unwrap(),
)?;
}
_ => {