Skip to content

Commit 44767d4

Browse files
committed
Fix for TLS/SSL issues
Now you can ignore cert issues
1 parent 3ebfcd0 commit 44767d4

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ keyring = "3"
6161
arboard = "3"
6262

6363
# TLS / Certificate trust
64-
rustls = "0.23"
64+
rustls = { version = "0.23", features = ["ring"] }
6565
rustls-native-certs = "0.8"
6666
sha2 = "0.10"
6767
x509-parser = "0.16"

crates/loom-ldapbrowser/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tracing = { workspace = true }
1919
tracing-subscriber = { workspace = true }
2020
tokio = { workspace = true }
2121
dirs = { workspace = true }
22+
rustls = { workspace = true }
2223

2324
[build-dependencies]
2425
winresource = "0.1"

crates/loom-ldapbrowser/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ struct Cli {
3636

3737
#[tokio::main]
3838
async fn main() -> Result<()> {
39+
rustls::crypto::ring::default_provider()
40+
.install_default()
41+
.expect("Failed to install rustls crypto provider");
42+
3943
let cli = Cli::parse();
4044

4145
// Initialize logging to ./logs/ directory at debug level

0 commit comments

Comments
 (0)