pub fn to_pem(&self) -> Result<Vec<u8>, TlsEncodingError> {
        self.private_key
            .private_key_to_pem_pkcs8()
            .map_err(|_| TlsEncodingError {
                internal_error: "Error encoding PEM via OpenSSL".to_string(),
            })
    }
/// Returns the private key in PEM encoding
Returns the private key in PEM encoding
Returns the private key in PEM encoding
pub fn to_pem(&self) -> Result<Vec<u8>, TlsEncodingError> {
        self.private_key
            .private_key_to_pem_pkcs8()
            .map_err(|_| TlsEncodingError {
                internal_error: "Error encoding PEM via OpenSSL".to_string(),
            })
    }
pub fn to_pem ( & self ) -> Result < Vec < u8 > , TlsEncodingError > { self . private_key . private_key_to_pem_pkcs8 ( ) . map_err ( | _ | TlsEncodingError { internal_error : " " . to_string ( ) , } ) }
Returns the private key in PEM encoding
Returns the private key in PEM encoding
&self
&self