Avoid deprecated rustls API
This commit is contained in:
parent
3da5ab62d2
commit
c1b118f378
|
@ -246,7 +246,7 @@ impl RustlsConnector {
|
||||||
.map(|cert| tokio_rustls::rustls::Certificate(cert.0))
|
.map(|cert| tokio_rustls::rustls::Certificate(cert.0))
|
||||||
.collect();
|
.collect();
|
||||||
builder
|
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()))?
|
.map_err(|e| Error::Other(e.into()))?
|
||||||
}
|
}
|
||||||
None => builder.with_no_client_auth(),
|
None => builder.with_no_client_auth(),
|
||||||
|
|
Loading…
Reference in New Issue