try_tls_pem_bundle

Function try_tls_pem_bundle 

Source
pub fn try_tls_pem_bundle() -> Option<PemBundle>
Expand description

Try to find a usable TLS PemBundle by probing the same sources as try_tls_acceptor / try_tls_connector.

Returns the first bundle whose CA certificate is readable. Only CA readability is checked — cert and key are returned as-is and may not be valid. Callers that cannot use tokio_rustls types directly (e.g. reqwest) can read the raw PEM bytes via Pem::reader.