add x5c header (#182)

* add x5c header

* fix format
This commit is contained in:
Oliver Thallmair 2021-03-05 09:08:47 +01:00 committed by Vincent Prouillet
parent f3566ecd82
commit de5a1903b0
1 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,11 @@ pub struct Header {
/// Defined in [RFC7515#4.1.5](https://tools.ietf.org/html/rfc7515#section-4.1.5).
#[serde(skip_serializing_if = "Option::is_none")]
pub x5u: Option<String>,
/// X.509 certificate chain. A Vec of base64 encoded ASN.1 DER certificates.
///
/// Defined in [RFC7515#](https://tools.ietf.org/html/rfc7515#section-4.1.6).
#[serde(skip_serializing_if = "Option::is_none")]
pub x5c: Option<Vec<String>>,
/// X.509 certificate thumbprint
///
/// Defined in [RFC7515#4.1.7](https://tools.ietf.org/html/rfc7515#section-4.1.7).
@ -55,6 +60,7 @@ impl Header {
kid: None,
x5u: None,
x5t: None,
x5c: None,
}
}