Skip to content

Commit 6bf26a1

Browse files
authored
Drop Mozilla tls roots (#68)
There are few chances that ZooKeeper servers are certificated by those ca directly. One could specify them by serializing them to pem anyway.
1 parent 16e412f commit 6bf26a1

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ rust-version = "1.76"
1717
[features]
1818
default = []
1919
tls = ["rustls", "rustls-pemfile", "futures-rustls"]
20-
tls-mozilla-roots = ["tls", "webpki-roots"]
2120
sasl = ["sasl-gssapi", "sasl-digest-md5"]
2221
sasl-digest-md5 = ["rsasl/unstable_custom_mechanism", "md5", "linkme", "hex"]
2322
sasl-gssapi = ["rsasl/gssapi"]
@@ -40,7 +39,6 @@ either = "1.9.0"
4039
uuid = { version = "1.4.1", features = ["v4"] }
4140
rustls = { version = "0.23.2", optional = true }
4241
rustls-pemfile = { version = "2", optional = true }
43-
webpki-roots = { version = "1.0.1", optional = true }
4442
derive-where = "1.2.7"
4543
fastrand = "2.0.2"
4644
tracing = "0.1.40"

src/tls.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,6 @@ impl TlsOptions {
107107
Self { ca_certs: RootCertStore::empty(), identity: None, hostname_verification: true }
108108
}
109109

110-
/// Trusts root certificates trusted by Mozilla.
111-
///
112-
/// See [webpki-roots](https://docs.rs/webpki-roots) for more.
113-
#[cfg(feature = "tls-mozilla-roots")]
114-
pub fn with_mozilla_roots(mut self) -> Self {
115-
self.ca_certs.extend(webpki_roots::TLS_SERVER_ROOTS.iter().cloned());
116-
self
117-
}
118-
119110
/// Disables hostname verification in tls handshake.
120111
///
121112
/// # Safety

0 commit comments

Comments
 (0)