pub fn extract_private_key_pem_block(pem_text: &str) -> Result<String>
Extract the first private-key PEM block. Strips OpenSSL preambles (EC PARAMETERS) that rcgen’s KeyPair::from_pem can’t read.
EC PARAMETERS
KeyPair::from_pem