diff --git a/Cargo.lock b/Cargo.lock index e6230a74278f0..2a0d79fb10784 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -806,7 +806,7 @@ dependencies = [ "regex", "ring 0.17.5", "rustls", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "rustls-pemfile 1.0.4", "rustls-webpki 0.101.7", "serde", @@ -5070,7 +5070,7 @@ dependencies = [ "hyper", "log", "rustls", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "tokio", "tokio-rustls", "webpki-roots", @@ -8637,7 +8637,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "rustls", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "rustls-pemfile 1.0.4", "serde", "serde_json", @@ -9342,7 +9342,7 @@ dependencies = [ "risingwave_rpc_client", "rumqttc", "rust_decimal", - "rustls-native-certs", + "rustls-native-certs 0.7.0", "rustls-pemfile 2.1.1", "rw_futures_util", "serde", @@ -10534,7 +10534,7 @@ dependencies = [ "flume", "futures", "log", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "rustls-pemfile 1.0.4", "rustls-webpki 0.100.3", "thiserror", @@ -10694,6 +10694,19 @@ dependencies = [ "security-framework", ] +[[package]] +name = "rustls-native-certs" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" +dependencies = [ + "openssl-probe", + "rustls-pemfile 2.1.1", + "rustls-pki-types", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pemfile" version = "1.0.4" diff --git a/src/connector/Cargo.toml b/src/connector/Cargo.toml index a34cdf04bc607..12f19479a746f 100644 --- a/src/connector/Cargo.toml +++ b/src/connector/Cargo.toml @@ -118,7 +118,7 @@ risingwave_pb = { workspace = true } risingwave_rpc_client = { workspace = true } rumqttc = { version = "0.22.0", features = ["url"] } rust_decimal = "1" -rustls-native-certs = "0.6" +rustls-native-certs = "0.7" rustls-pemfile = "2" rw_futures_util = { workspace = true } serde = { version = "1", features = ["derive", "rc"] } diff --git a/src/connector/src/mqtt_common.rs b/src/connector/src/mqtt_common.rs index 1c9a83f6787f6..65c5e5094dd22 100644 --- a/src/connector/src/mqtt_common.rs +++ b/src/connector/src/mqtt_common.rs @@ -153,7 +153,7 @@ impl MqttCommon { rustls_native_certs::load_native_certs().expect("could not load platform certs") { root_cert_store - .add(&tokio_rustls::rustls::Certificate(cert.0)) + .add(&tokio_rustls::rustls::Certificate(cert.to_vec())) .unwrap(); } }