libp2p::tls::certificate

Function generate

pub fn generate(
    identity_keypair: &Keypair,
) -> Result<(CertificateDer<'static>, PrivateKeyDer<'static>), GenError>
Available on crate feature tls only.
Expand description

Generates a self-signed TLS certificate that includes a libp2p-specific certificate extension containing the public key of the given keypair.