Skip to main content

validate_eap_tls_material

Function validate_eap_tls_material 

Source
pub fn validate_eap_tls_material(
    cert_chain_pem: &[u8],
    private_key_pem: &[u8],
    ca_bundle_pem: Option<&[u8]>,
) -> Result<(), RadiusTlsError>
Expand description

Validate the expected keys from a user-owned TLS Secret.

The first certificate in cert_chain_pem must be the leaf certificate. ca_bundle_pem is optional; a provided empty or invalid bundle is an error. Neither source bytes nor parsed key material are retained or returned.