diff --git a/Cargo.lock b/Cargo.lock index c8fa0f301173..c3fc8f574e86 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", @@ -8624,7 +8624,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", @@ -9327,7 +9327,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", @@ -10519,7 +10519,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", @@ -10679,6 +10679,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 043e542e4a5c..26c608514893 100644 --- a/src/connector/Cargo.toml +++ b/src/connector/Cargo.toml @@ -116,7 +116,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 1c9a83f6787f..65c5e5094dd2 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(); } }