Avoid deprecated rustls API

This commit is contained in:
Dirkjan Ochtman 2023-07-24 10:42:33 +02:00
parent 3da5ab62d2
commit c1b118f378
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ impl RustlsConnector {
.map(|cert| tokio_rustls::rustls::Certificate(cert.0))
.collect();
builder
.with_single_cert(certs, tokio_rustls::rustls::PrivateKey(key.0))
.with_client_auth_cert(certs, tokio_rustls::rustls::PrivateKey(key.0))
.map_err(|e| Error::Other(e.into()))?
}
None => builder.with_no_client_auth(),