pub struct TlsConfig {
pub cert_path: PathBuf,
pub key_path: PathBuf,
pub fingerprint: String,
pub acceptor: TlsAcceptor,
}Expand description
TLS configuration for the bridge
Fields§
§cert_path: PathBufPath to the certificate file
key_path: PathBufPath to the private key file
fingerprint: StringSHA256 fingerprint of the certificate (hex encoded)
acceptor: TlsAcceptorTLS acceptor for incoming connections
Implementations§
Source§impl TlsConfig
impl TlsConfig
Sourcepub fn load_or_generate(
config_dir: &PathBuf,
extra_sans: &[String],
) -> Result<Self>
pub fn load_or_generate( config_dir: &PathBuf, extra_sans: &[String], ) -> Result<Self>
Load or generate TLS configuration.
extra_sans is a list of additional IP addresses or DNS names to include in the certificate SANs.
Sourcepub fn fingerprint_short(&self) -> String
pub fn fingerprint_short(&self) -> String
Get the fingerprint in a format suitable for display
Auto Trait Implementations§
impl Freeze for TlsConfig
impl !RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnsafeUnpin for TlsConfig
impl !UnwindSafe for TlsConfig
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
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