Crate rsa_pem

Source
Expand description

Read and Write PEM files from RSA types

This library will be useless after the next release of the RSA crate, which should have this functionality baked in.

§Examples

use rsa_pem::KeyExt;
use rsa::RSAPrivateKey;

let pkcs8_string = private_key.to_pem_pkcs8().unwrap();
let private_key = RSAPrivateKey::from_pem_pkcs8(&pkcs8_string).unwrap();

Enums§

  • Errors produced when serializing or deserializing keys

Traits§

  • Extensions to keys for formatting and reading PKCS1 and PKCS8 PEM strings