pub struct MitmCa { /* private fields */ }Expand description
Ephemeral per-VM Root CA and leaf certificate cache for transparent host-side --mitm-tls.
Implementations§
Source§impl MitmCa
impl MitmCa
Sourcepub fn generate(insecure_upstream: bool) -> Result<Arc<Self>>
pub fn generate(insecure_upstream: bool) -> Result<Arc<Self>>
Generate a fresh ephemeral ECDSA P-256 Root CA for this VM session.
Sourcepub fn ca_cert_pem(&self) -> &str
pub fn ca_cert_pem(&self) -> &str
Root CA certificate in PEM format (installed into the disposable guest trust store).
Sourcepub fn start_session(&self, sni_or_ip: &str) -> Result<MitmSession>
pub fn start_session(&self, sni_or_ip: &str) -> Result<MitmSession>
Create a Sans-I/O duplex MitmSession for a new guest TLS connection.
Auto Trait Implementations§
impl !Freeze for MitmCa
impl !RefUnwindSafe for MitmCa
impl !UnwindSafe for MitmCa
impl Forget for MitmCa
impl Move for MitmCa
impl Send for MitmCawhere
RawVecInner: Send,
&'static [u8]: Send,
NonZero<i32>: Send,
RawTable<(DnType, DnValue)>: Send,
&'static Algorithm: Send,
&'static EcdsaSigningAlgorithm: Send,
BoxRaw<[u64]>: Send,
NonZero<u64>: Send,
BoxRaw<[u8]>: Send,
&'static dyn RsaEncoding: Send,
BoxRaw<dyn RemoteKeyPair + Send + Sync>: Send,
&'static SignatureAlgorithm: Send,
Mutex<HashMap<String, Arc<ServerConfig>>>: Send,
Arc<ClientConfig>: Send,
Arc<CryptoProvider>: Send,
impl Sync for MitmCa
impl Unpin for MitmCawhere
*const u8 is !null: Unpin,
&'static [u8]: Unpin,
NonZero<i32>: Unpin,
&'static Algorithm: Unpin,
&'static EcdsaSigningAlgorithm: Unpin,
Box<[u64]>: Unpin,
NonZero<u64>: Unpin,
Box<[u8]>: Unpin,
&'static dyn RsaEncoding: Unpin,
Box<dyn RemoteKeyPair + Send + Sync>: Unpin,
&'static SignatureAlgorithm: Unpin,
Align4<u32>: Unpin,
Align1<u8>: Unpin,
Arc<ServerConfig>: Unpin,
Arc<ClientConfig>: Unpin,
Arc<CryptoProvider>: Unpin,
impl UnsafeUnpin for MitmCawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static [u8]: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
PhantomData<SanType>: UnsafeUnpin,
PhantomData<(DnType, DnValue)>: UnsafeUnpin,
PhantomData<DnType>: UnsafeUnpin,
PhantomData<KeyUsagePurpose>: UnsafeUnpin,
PhantomData<ExtendedKeyUsagePurpose>: UnsafeUnpin,
PhantomData<GeneralSubtree>: UnsafeUnpin,
PhantomData<CrlDistributionPoint>: UnsafeUnpin,
PhantomData<CustomExtension>: UnsafeUnpin,
PhantomData<N>: UnsafeUnpin,
PhantomData<R>: UnsafeUnpin,
&'static Algorithm: UnsafeUnpin,
&'static EcdsaSigningAlgorithm: UnsafeUnpin,
*const [u64] is !null: UnsafeUnpin,
PhantomData<[u64]>: UnsafeUnpin,
PhantomData<P>: UnsafeUnpin,
PhantomData<RRR>: UnsafeUnpin,
PhantomData<Q>: UnsafeUnpin,
PhantomData<N>: UnsafeUnpin,
PhantomData<RR>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const [u8] is !null: UnsafeUnpin,
PhantomData<[u8]>: UnsafeUnpin,
&'static dyn RsaEncoding: UnsafeUnpin,
*const dyn RemoteKeyPair + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn RemoteKeyPair + Send + Sync>: UnsafeUnpin,
&'static SignatureAlgorithm: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
PhantomData<(String, Arc<ServerConfig>)>: UnsafeUnpin,
*const ArcInner<ClientConfig> is !null: UnsafeUnpin,
PhantomData<ArcInner<ClientConfig>>: UnsafeUnpin,
*const ArcInner<CryptoProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<CryptoProvider>>: UnsafeUnpin,
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> 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