X509_certchain.Private_keyCertificate private keys.
The type for certificate private keys.
Note. The private key data is kept in a C datastructure so the GC does not see it.
of_pem_file file loads a private key from file file.
Note. This function ensures that the GC does not see the private key data.
write_pem_file file k writes the private key k to file.
Note. This function ensures that the GC does not see the private key data.
generate () generates a suitable private key whose details are subject to change. Currently this is an ECDSA secp256r1 (P-256) private key.
val copy_psa_key : Bytesrw_crypto.Psa.Key_id.t -> (t, string) resultcopy_psa_key k is a certificate private key from the given PSA key. This key must be exportable and be an RSA or elliptic curve key. The psa key can be destroyed afterwards.