Function rust_ipfs::p2p::generate_cert
source ยท pub fn generate_cert(
keypair: &Keypair,
salt: &[u8],
expire: bool,
) -> Result<(Certificate, KeyPair, Option<String>)>Expand description
Generates a TLS certificate that derives from libp2p Keypair with a salt.
Note: If expire is true, it will produce a expired pem that can be appended for webrtc transport
Additionally, this function does not generate deterministic certs yet due to
CertificateParams::self_signed using ring rng. This may change in the future