pub struct FileCertSource { /* private fields */ }Expand description
OPEN cert source: read a PEM certificate chain + private key from two files.
Implementations§
Trait Implementations§
Source§impl TlsCertSource for FileCertSource
impl TlsCertSource for FileCertSource
Source§fn load(&self) -> Result<TlsMaterial, TlsError>
fn load(&self) -> Result<TlsMaterial, TlsError>
Load a single server certificate chain + key. Used unless
Self::resolver
returns Some (in which case the core never calls this).Source§fn resolver(&self) -> Option<Arc<dyn ResolvesServerCert>>
fn resolver(&self) -> Option<Arc<dyn ResolvesServerCert>>
Optional dynamic server-cert resolver. When
Some, the core builds the
ServerConfig with this resolver INSTEAD of load() (so the cert can rotate
at runtime without rebuilding the acceptor — enterprise hitless ACME), and
advertises the acme-tls/1 ALPN so an on-listener TLS-ALPN-01 challenge can
negotiate on the same port. Default None → the OPEN single-cert path.Source§fn client_verifier(&self) -> Option<Arc<dyn ClientCertVerifier>>
fn client_verifier(&self) -> Option<Arc<dyn ClientCertVerifier>>
Optional client-certificate verifier. When
Some, the listener requires and
verifies client certificates (mTLS / managed PKI). Default None → no client
auth, exactly as before.Auto Trait Implementations§
impl Freeze for FileCertSource
impl RefUnwindSafe for FileCertSource
impl Send for FileCertSource
impl Sync for FileCertSource
impl Unpin for FileCertSource
impl UnsafeUnpin for FileCertSource
impl UnwindSafe for FileCertSource
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