pub enum ResolvedSigningKey {
Pem(Vec<u8>),
Hsm {
context: Arc<HsmContext>,
key_label: String,
},
}Expand description
Owned signing key — either PEM bytes from disk or an HSM context + label.
Unlike CaSigningKey (which borrows), this type owns all data,
making it easy to return from an async resolver without lifetime issues.
Call ResolvedSigningKey::as_signing_key to obtain a borrowed
CaSigningKey for passing to issue_certificate.
Variants§
Pem(Vec<u8>)
PEM-encoded private key loaded from disk.
Hsm
HSM-backed private key accessed via PKCS#11.
Fields
§
context: Arc<HsmContext>Shared HSM context with an active session.
Implementations§
Source§impl ResolvedSigningKey
impl ResolvedSigningKey
Sourcepub fn as_signing_key(&self) -> CaSigningKey<'_>
pub fn as_signing_key(&self) -> CaSigningKey<'_>
Borrow as a CaSigningKey suitable for issue_certificate.
Auto Trait Implementations§
impl Freeze for ResolvedSigningKey
impl RefUnwindSafe for ResolvedSigningKey
impl Send for ResolvedSigningKey
impl Sync for ResolvedSigningKey
impl Unpin for ResolvedSigningKey
impl UnsafeUnpin for ResolvedSigningKey
impl UnwindSafe for ResolvedSigningKey
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