pub fn load_certified_key(
chain_pem: &str,
key_pem: &str,
) -> Result<(Arc<CertifiedKey>, Vec<u8>), AcmeError>Expand description
Parses a PEM chain + PEM key into a rustls [CertifiedKey], verifying the
key matches the leaf. Returns the leaf DER alongside for metadata parsing.