Struct mz_cloud_resources::crd::gen::cert_manager::certificates::CertificatePrivateKey
source · pub struct CertificatePrivateKey {
pub algorithm: Option<CertificatePrivateKeyAlgorithm>,
pub encoding: Option<CertificatePrivateKeyEncoding>,
pub rotation_policy: Option<CertificatePrivateKeyRotationPolicy>,
pub size: Option<i64>,
}
Expand description
Private key options. These include the key algorithm and size, the used encoding and the rotation policy.
Fields§
§algorithm: Option<CertificatePrivateKeyAlgorithm>
Algorithm is the private key algorithm of the corresponding private key for this certificate.
If provided, allowed values are either RSA
, ECDSA
or Ed25519
.
If algorithm
is specified and size
is not provided,
key size of 2048 will be used for RSA
key algorithm and
key size of 256 will be used for ECDSA
key algorithm.
key size is ignored when using the Ed25519
key algorithm.
encoding: Option<CertificatePrivateKeyEncoding>
The private key cryptography standards (PKCS) encoding for this certificate’s private key to be encoded in.
If provided, allowed values are PKCS1
and PKCS8
standing for PKCS#1
and PKCS#8, respectively.
Defaults to PKCS1
if not specified.
rotation_policy: Option<CertificatePrivateKeyRotationPolicy>
RotationPolicy controls how private keys should be regenerated when a re-issuance is being processed.
If set to Never
, a private key will only be generated if one does not
already exist in the target spec.secretName
. If one does exist but it
does not have the correct algorithm or size, a warning will be raised
to await user intervention.
If set to Always
, a private key matching the specified requirements
will be generated whenever a re-issuance occurs.
Default is Never
for backward compatibility.
size: Option<i64>
Size is the key bit size of the corresponding private key for this certificate.
If algorithm
is set to RSA
, valid values are 2048
, 4096
or 8192
,
and will default to 2048
if not specified.
If algorithm
is set to ECDSA
, valid values are 256
, 384
or 521
,
and will default to 256
if not specified.
If algorithm
is set to Ed25519
, Size is ignored.
No other values are allowed.
Trait Implementations§
source§impl Clone for CertificatePrivateKey
impl Clone for CertificatePrivateKey
source§fn clone(&self) -> CertificatePrivateKey
fn clone(&self) -> CertificatePrivateKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CertificatePrivateKey
impl Debug for CertificatePrivateKey
source§impl Default for CertificatePrivateKey
impl Default for CertificatePrivateKey
source§fn default() -> CertificatePrivateKey
fn default() -> CertificatePrivateKey
source§impl<'de> Deserialize<'de> for CertificatePrivateKey
impl<'de> Deserialize<'de> for CertificatePrivateKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for CertificatePrivateKey
impl JsonSchema for CertificatePrivateKey
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for CertificatePrivateKey
impl PartialEq for CertificatePrivateKey
source§impl Serialize for CertificatePrivateKey
impl Serialize for CertificatePrivateKey
impl StructuralPartialEq for CertificatePrivateKey
Auto Trait Implementations§
impl Freeze for CertificatePrivateKey
impl RefUnwindSafe for CertificatePrivateKey
impl Send for CertificatePrivateKey
impl Sync for CertificatePrivateKey
impl Unpin for CertificatePrivateKey
impl UnwindSafe for CertificatePrivateKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign
, for types that do not implement AddAssign
.