pub struct TlsEndpoint(/* private fields */);Expand description
A pinned loopback TLS endpoint for one leg of a CLS proxy.
Implementations§
Source§impl TlsEndpoint
impl TlsEndpoint
Sourcepub fn load(dir: &Path, domain: &str, role: &str, peer: &str) -> Result<Self>
pub fn load(dir: &Path, domain: &str, role: &str, peer: &str) -> Result<Self>
Load an endpoint from the test PKI generated by cargo run -p xtask -- gen-pki.
Select han/cls ↔ han/smgw or wan/smgw ↔ wan/aemt.
The peer’s chain file supplies the provisioned leaf pin. Verifying its chain
at connection time also enforces certificate purpose and validity.
Sourcepub fn from_identity(
identity: TlsIdentity,
trust_anchor: &X509Ref,
peer_leaf: &X509Ref,
) -> Result<Self>
pub fn from_identity( identity: TlsIdentity, trust_anchor: &X509Ref, peer_leaf: &X509Ref, ) -> Result<Self>
Configure an endpoint from its signing identity, trusted root and exact peer pin.
Auto Trait Implementations§
impl Freeze for TlsEndpoint
impl RefUnwindSafe for TlsEndpoint
impl Send for TlsEndpoint
impl Sync for TlsEndpoint
impl Unpin for TlsEndpoint
impl UnsafeUnpin for TlsEndpoint
impl UnwindSafe for TlsEndpoint
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