pub fn load_private_key(file_path: &str) -> ServerResult<PrivateKeyDer<'static>>Expand description
Load a TLS/SSL private key from a PEM file.
Accepts any PEM-encoded key format that rustls-pki-types understands
(PKCS#8, PKCS#1, SEC1). We don’t narrow the accepted format because
rustls itself is tolerant and picking one here would just make the
error message less obvious (“wrong format” vs. the real “file missing”).