karyon_p2p::tls_config

Function generate_cert

Source
fn generate_cert<'a>(
    key_pair: &KeyPair,
) -> Result<(CertificateDer<'a>, PrivateKeyDer<'a>)>
Expand description

Generates a certificate and returns both the certificate and the private key.