pub struct SidecarIssuer { /* private fields */ }Expand description
One freshly generated CA and an immutable snapshot of its destination policy.
Only the public CA certificate and issued public leaves leave this object.
Implementations§
Source§impl SidecarIssuer
impl SidecarIssuer
pub fn new( policy: DestinationPolicy, ca_not_after: OffsetDateTime, ) -> Result<Self, IssueError>
pub fn public_cert_der(&self) -> &CertificateDer<'static>
pub fn public_cert_pem(&self) -> String
Sourcepub fn issue(
&self,
scope: &DestinationScope,
origin: &Origin,
grant_not_after: OffsetDateTime,
csr_der: &[u8],
) -> Result<CertificateDer<'static>, IssueError>
pub fn issue( &self, scope: &DestinationScope, origin: &Origin, grant_not_after: OffsetDateTime, csr_der: &[u8], ) -> Result<CertificateDer<'static>, IssueError>
The trusted supervisor supplies the scope and deadline from its live grant. The worker supplies a PKCS#10 request for its ephemeral P-256 public key. A leaf is valid for one DNS name, even for a wildcard grant.
Auto Trait Implementations§
impl !RefUnwindSafe for SidecarIssuer
impl !UnwindSafe for SidecarIssuer
impl Forget for SidecarIssuer
impl Freeze for SidecarIssuer
impl Move for SidecarIssuer
impl Send for SidecarIssuer
impl Sync for SidecarIssuer
impl Unpin for SidecarIssuer
impl UnsafeUnpin for SidecarIssuer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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 moreCreates a shared type from an unshared type.