mirror of
https://github.com/instant-labs/instant-epp.git
synced 2025-02-08 01:42:02 +00:00
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))
|
||||
.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(),
|
||||
|
Loading…
Reference in New Issue
Block a user