iroh_net::tls::certificate

Function generate

Source
pub fn generate(
    identity_secret_key: &SecretKey,
) -> Result<(CertificateDer<'static>, PrivateKeyDer<'static>), GenError>
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Expand description

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