pub fn generate_tls_key_pair_der(
    common_name: &str,
    serial: [u8; 19],
    not_after: &Asn1Time,
) -> (TlsEd25519CertificateDerBytes, TlsEd25519SecretKeyDerBytes) {
    let (x509_certificate, key_pair) = generate_tls_key_pair(common_name, serial, not_after);
    der_encode_cert_and_secret_key(&key_pair, x509_certificate)
}
/// Generate a key pair and return the certificate and private key in DER
/// format.
///
/// Note that the certificate serial number must be at most 20 octets according
/// to https://tools.ietf.org/html/rfc5280 Section 4.1.2.2. The 19 bytes serial
/// number argument is interpreted as an unsigned integer and thus fits in 20
/// bytes, encoded as a signed ASN1 integer.
Generate a key pair and return the certificate and private key in DER
format.


Generate a key pair and return the certificate and private key in DER format .
pub fn generate_tls_key_pair_der(
    common_name: &str,
    serial: [u8; 19],
    not_after: &Asn1Time,
) -> (TlsEd25519CertificateDerBytes, TlsEd25519SecretKeyDerBytes) {
    let (x509_certificate, key_pair) = generate_tls_key_pair(common_name, serial, not_after);
    der_encode_cert_and_secret_key(&key_pair, x509_certificate)
}
pub fn generate_tls_key_pair_der ( common_name : & str , serial : [ u8 ; 19 ] , not_after : & Asn1Time , ) -> ( TlsEd25519CertificateDerBytes , TlsEd25519SecretKeyDerBytes ) { let ( x509_certificate , key_pair ) = generate_tls_key_pair ( common_name , serial , not_after ) ; der_encode_cert_and_secret_key ( & key_pair , x509_certificate ) }
Generate a key pair and return the certificate and private key in DER
format.
Generate a key pair and return the certificate and private key in DER format .
common_name
&str
serial
[u8; 19]
not_after
&Asn1Time
common_name
&str
serial
[u8; 19]
not_after
&Asn1Time