We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cbf029 commit c794232Copy full SHA for c794232
src/tls.rs
@@ -196,6 +196,8 @@ impl TlsConfigBuilder {
196
rustls_pemfile::Item::Pkcs1Key(k) => key_opt = Some(k.into()),
197
rustls_pemfile::Item::Pkcs8Key(k) => key_opt = Some(k.into()),
198
rustls_pemfile::Item::Sec1Key(k) => key_opt = Some(k.into()),
199
+ // Ignore certs in the same pem file as private key
200
+ rustls_pemfile::Item::X509Certificate(_) => {},
201
_ => return Err(TlsConfigError::UnknownPrivateKeyFormat),
202
}
203
0 commit comments