yubikey-cli: bump x509-parser to v0.14 (#441)
This commit is contained in:
committed by
GitHub
parent
ccf19a3668
commit
57bb088c7d
+1
-1
@@ -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
@@ -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(),
|
||||
)?;
|
||||
}
|
||||
_ => {
|
||||
|
||||
Reference in New Issue
Block a user