Skip to main content

public_key_to_pem

Function public_key_to_pem 

Source
pub fn public_key_to_pem(key: &RsaPublicKey) -> Result<String, CryptError>
Expand description

Converts an RSA public key to PEM format string.

Format: “—–BEGIN RSA PUBLIC KEY—–\n{base64}\n—–END RSA PUBLIC KEY—–\n”