/// Generates a TlsPublicKeyCert certificate together with its private key.
Generates a TlsPublicKeyCert certificate together with its private key.
Generates a TlsPublicKeyCert certificate together with its private key .
pub fn generate_ed25519_tlscert() -> (PKey<Private>, TlsPublicKeyCert) {
    let key_pair = ed25519_key_pair();
    let server_cert_x509 = generate_cert(&key_pair, MessageDigest::null());
    let server_cert = TlsPublicKeyCert::new_from_x509(server_cert_x509)
        .expect("error converting X509 to TlsPublicKeyCert");
    (key_pair, server_cert)
}
pub fn generate_ed25519_tlscert ( ) -> ( PKey < Private > , TlsPublicKeyCert ) { let key_pair = ed25519_key_pair ( ) ; let server_cert_x509 = generate_cert ( & key_pair , MessageDigest :: null ( ) ) ; let server_cert = TlsPublicKeyCert :: new_from_x509 ( server_cert_x509 ) . expect ( " " ) ; ( key_pair , server_cert ) }
Generates a TlsPublicKeyCert certificate together with its private key.
Generates a TlsPublicKeyCert certificate together with its private key .