pub struct CaInstance {
pub config: CaConfig,
pub cert_chain: Vec<Vec<u8>>,
pub hsm_backed: bool,
}Expand description
Initialized CA instance ready for certificate issuance.
Fields§
§config: CaConfigConfiguration this instance was built from.
cert_chain: Vec<Vec<u8>>Loaded CA certificate chain (DER-encoded).
hsm_backed: boolWhether the private key is HSM-backed.
Implementations§
Source§impl CaInstance
impl CaInstance
Sourcepub fn from_config(config: &CaConfig) -> Result<Self, CaInitError>
pub fn from_config(config: &CaConfig) -> Result<Self, CaInitError>
Initialize a CA from configuration.
Loads the certificate chain, validates CA extensions, and prepares the signing key (or detects PKCS#11 URI for HSM delegation).
Auto Trait Implementations§
impl Freeze for CaInstance
impl RefUnwindSafe for CaInstance
impl Send for CaInstance
impl Sync for CaInstance
impl Unpin for CaInstance
impl UnsafeUnpin for CaInstance
impl UnwindSafe for CaInstance
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more