Function webcryptobox::export_private_key_pem
source · pub fn export_private_key_pem(
private_key: EcKey<Private>
) -> Result<Vec<u8>, ErrorStack>
Expand description
Export a private EC key in PEM format.
§Example:
let key = webcryptobox::generate_private_key().unwrap();
let pem = webcryptobox::export_private_key_pem(key);