pub struct TlsConnectOptions {
pub sni: String,
pub client_cert: Option<PathBuf>,
pub client_key: Option<PathBuf>,
}Expand description
Options for wrapping the SSH TCP path in TLS (SSH-over-TLS).
When present on crate::ssh::ConnectionConfig, the client dials TCP,
completes a rustls handshake (optional mTLS), then runs SSH on the TLS stream.
Fields§
§sni: StringDNS name for SNI + certificate verification (usually the VPS host).
client_cert: Option<PathBuf>Optional client certificate PEM path (mTLS).
client_key: Option<PathBuf>Optional client private key PEM path (mTLS; required with cert).
Implementations§
Trait Implementations§
Source§impl Clone for TlsConnectOptions
impl Clone for TlsConnectOptions
Source§fn clone(&self) -> TlsConnectOptions
fn clone(&self) -> TlsConnectOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TlsConnectOptions
impl RefUnwindSafe for TlsConnectOptions
impl Send for TlsConnectOptions
impl Sync for TlsConnectOptions
impl Unpin for TlsConnectOptions
impl UnsafeUnpin for TlsConnectOptions
impl UnwindSafe for TlsConnectOptions
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