pub struct Identity {
pub cert: CertificateDer<'static>,
pub key: PrivateKeyDer<'static>,
}Expand description
A TLS certificate and its private key, in DER.
Fields§
§cert: CertificateDer<'static>§key: PrivateKeyDer<'static>Implementations§
Source§impl Identity
impl Identity
Sourcepub fn self_signed(names: Vec<String>) -> Result<Self>
pub fn self_signed(names: Vec<String>) -> Result<Self>
Generate a fresh self-signed certificate for the given DNS names. Enough for local development and the in-process integration tests; a real deployment supplies a persistent certificate so the client’s per-server certificate hash (spec §21.2) stays stable.
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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