pub(crate) struct C509Json {
pub(crate) self_signed: bool,
pub(crate) certificate_type: Option<u8>,
pub(crate) serial_number: Option<UnwrappedBigUint>,
pub(crate) issuer: Option<RelativeDistinguishedName>,
pub(crate) validity_not_before: Option<String>,
pub(crate) validity_not_after: Option<String>,
pub(crate) subject: RelativeDistinguishedName,
pub(crate) subject_public_key_algorithm: Option<SubjectPubKeyAlgorithm>,
pub(crate) subject_public_key: String,
pub(crate) extensions: Extensions,
pub(crate) issuer_signature_algorithm: Option<IssuerSignatureAlgorithm>,
pub(crate) issuer_signature_value: Option<Vec<u8>>,
}
Expand description
A struct representing the JSON format of C509 certificate.
Fields§
§self_signed: bool
Indicate whether the certificate is self-signed.
certificate_type: Option<u8>
Optional certificate type, if not provided, set to 0 as self-signed.
serial_number: Option<UnwrappedBigUint>
Optional serial number of the certificate, if not provided, a random number will be generated.
issuer: Option<RelativeDistinguishedName>
Optional issuer of the certificate, if not provided, issuer is the same as subject.
validity_not_before: Option<String>
Optional validity not before date, if not provided, set to current time.
validity_not_after: Option<String>
Optional validity not after date, if not provided, set to no expire date 9999-12-31T23:59:59+00:00.
subject: RelativeDistinguishedName
Relative distinguished name of the subject.
subject_public_key_algorithm: Option<SubjectPubKeyAlgorithm>
Optional subject public key algorithm of the certificate, if not provided, set to Ed25519.
subject_public_key: String
A path to the public key file. Currently support only PEM format.
extensions: Extensions
Extensions of the certificate.
issuer_signature_algorithm: Option<IssuerSignatureAlgorithm>
Optional issuer signature algorithm of the certificate, if not provided, set to Ed25519.
issuer_signature_value: Option<Vec<u8>>
Optional issuer signature value of the certificate.