pub fn load_client_cert_key(
cert_path: &Path,
key_path: &Path,
) -> Result<Arc<CertKey>, TlsError>Expand description
Load client certificate and key for mTLS to upstreams
This function loads PEM-encoded certificates and private key and converts
them to Pingora’s CertKey format for use with HttpPeer.client_cert_key.
§Arguments
cert_path- Path to PEM-encoded certificate (may include chain)key_path- Path to PEM-encoded private key
§Returns
An Arc<CertKey> that can be set on peer.client_cert_key for mTLS