pub struct AcmeManager { /* private fields */ }Expand description
ACME certificate manager.
Implementations§
Source§impl AcmeManager
impl AcmeManager
Sourcepub fn new(
config: AcmeConfig,
cert_store: Arc<CertificateStore>,
cache_dir: impl AsRef<Path>,
) -> Self
pub fn new( config: AcmeConfig, cert_store: Arc<CertificateStore>, cache_dir: impl AsRef<Path>, ) -> Self
Create a new ACME manager.
Sourcepub fn create_resolver(
&self,
domains: Vec<String>,
) -> ProxyResult<Arc<ServerConfig>>
pub fn create_resolver( &self, domains: Vec<String>, ) -> ProxyResult<Arc<ServerConfig>>
Create an ACME resolver for TLS.
This returns an Arc
Sourcepub fn build_server_config_from_pem(
cert_pem: &[u8],
key_pem: &[u8],
) -> ProxyResult<Arc<ServerConfig>>
pub fn build_server_config_from_pem( cert_pem: &[u8], key_pem: &[u8], ) -> ProxyResult<Arc<ServerConfig>>
Build a ServerConfig from PEM-encoded certificate and key.
Sourcepub async fn start_renewal_task(
self: Arc<Self>,
cancel_token: CancellationToken,
)
pub async fn start_renewal_task( self: Arc<Self>, cancel_token: CancellationToken, )
Start background certificate renewal task.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if ACME is enabled.
Auto Trait Implementations§
impl !RefUnwindSafe for AcmeManager
impl !UnwindSafe for AcmeManager
impl Freeze for AcmeManager
impl Send for AcmeManager
impl Sync for AcmeManager
impl Unpin for AcmeManager
impl UnsafeUnpin for AcmeManager
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
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 more