pub fn strip_cert_headers(cert_string: String) -> String {
    cert_string
        .replace("-----BEGIN CERTIFICATE-----", "")
        .replace("-----END CERTIFICATE-----", "")
        .trim()
        .to_string()
}
/// Strips `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----` off a String,
/// good for including a certificate in an XML declaration for example
Strips `BEGIN CERTIFICATE` and `END CERTIFICATE` off a String,
good for including a certificate in an XML declaration for example
Strips ` BEGIN CERTIFICATE ` and ` END CERTIFICATE ` off a String good for including a certificate in an XML declaration for example
pub fn strip_cert_headers(cert_string: String) -> String {
    cert_string
        .replace("-----BEGIN CERTIFICATE-----", "")
        .replace("-----END CERTIFICATE-----", "")
        .trim()
        .to_string()
}
pub fn strip_cert_headers ( cert_string : String ) -> String { cert_string . replace ( " " , " " ) . replace ( " " , " " ) . trim ( ) . to_string ( ) }
Strips `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----` off a String,
good for including a certificate in an XML declaration for example
Strips ` ----- BEGIN CERTIFICATE ----- ` and ` ----- END CERTIFICATE ----- ` off a String good for including a certificate in an XML declaration for example
cert_string
String
cert_string
String