pub struct CertificateAuthorityPolicy {
    pub allowed_common_names: Option<Vec<String>>,
    pub allowed_config_list: Option<AllowedConfigList>,
    pub allowed_issuance_modes: Option<IssuanceModes>,
    pub allowed_locations_and_organizations: Option<Vec<Subject>>,
    pub allowed_sans: Option<AllowedSubjectAltNames>,
    pub maximum_lifetime: Option<String>,
    pub overwrite_config_values: Option<ReusableConfigWrapper>,
}
Expand description

The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy.

This type is not used in any activity, and only used as part of another schema.

Fields

allowed_common_names: Option<Vec<String>>

Optional. If any value is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed value. If no value is specified, all values will be allowed for this fied. Glob patterns are also supported.

allowed_config_list: Option<AllowedConfigList>

Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list.

allowed_issuance_modes: Option<IssuanceModes>

Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates.

allowed_locations_and_organizations: Option<Vec<Subject>>

Optional. If any Subject is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed Subject. If a Subject has an empty field, any value will be allowed for that field.

allowed_sans: Option<AllowedSubjectAltNames>

Optional. If a AllowedSubjectAltNames is specified here, then all Certificates issued by the CertificateAuthority must match AllowedSubjectAltNames. If no value or an empty value is specified, any value will be allowed for the SubjectAltNames field.

maximum_lifetime: Option<String>

Optional. The maximum lifetime allowed by the CertificateAuthority. Note that if the any part if the issuing chain expires before a Certificate’s requested maximum_lifetime, the effective lifetime will be explicitly truncated.

overwrite_config_values: Option<ReusableConfigWrapper>

Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more