extract_private_key_pem_block

Function extract_private_key_pem_block 

Source
pub fn extract_private_key_pem_block(pem_text: &str) -> Result<String>
Expand description

Extract the first private-key PEM block. Strips OpenSSL preambles (EC PARAMETERS) that rcgen’s KeyPair::from_pem can’t read.