pub fn generate_ed25519_cert() -> (PKey<Private>, X509) {
    let key_pair = ed25519_key_pair();
    let server_cert = generate_cert(&key_pair, MessageDigest::null());
    (key_pair, server_cert)
}
/// Generates an X.509 certificate together with its private key.
Generates an X.509 certificate together with its private key.
Generates an X . 509 certificate together with its private key .
pub fn generate_ed25519_cert() -> (PKey<Private>, X509) {
    let key_pair = ed25519_key_pair();
    let server_cert = generate_cert(&key_pair, MessageDigest::null());
    (key_pair, server_cert)
}
pub fn generate_ed25519_cert ( ) -> ( PKey < Private > , X509 ) { let key_pair = ed25519_key_pair ( ) ; let server_cert = generate_cert ( & key_pair , MessageDigest :: null ( ) ) ; ( key_pair , server_cert ) }
Generates an X.509 certificate together with its private key.
Generates an X . 509 certificate together with its private key .