Split out from https://github.com/ximon18/keyls/issues/13#issuecomment-5446473419. These lines of code: - https://github.com/NLnetLabs/kmip-protocol/blame/03cc2defe51ecbfc89621d92f80f30042bdc0178/src/client/tls/common/rustls.rs#L78 - https://github.com/NLnetLabs/kmip-protocol/blame/03cc2defe51ecbfc89621d92f80f30042bdc0178/src/client/tls/common/rustls.rs#L86 Result in the following error if one actually tries to use client/server certificate/key verification: ``` Configuration error: Failed to parse PEM bytes for server certificate: invalid peer certificate: BadEncoding ``` On `main` the `CertificateDer::pem_slice_iter()` is correctly used instead of `CertificateDer::from_slice()`.
Split out from ximon18/keyls#13 (comment).
These lines of code:
Result in the following error if one actually tries to use client/server certificate/key verification:
On
maintheCertificateDer::pem_slice_iter()is correctly used instead ofCertificateDer::from_slice().