Skip to content

Commit 38a7238

Browse files
committed
fix: Fix issues with rustls provider
1 parent ff9ba08 commit 38a7238

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

Cargo.lock

Lines changed: 5 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ edition = "2021"
55
license = "MIT"
66

77
[dependencies]
8+
rustls = { version = "0.23", features = ["ring"] }
9+
810
base64 = "0.22.1"
911
bollard = "0.19.4"
1012
chrono = "0.4.42"
@@ -37,6 +39,7 @@ pingora-load-balancing = "0.6.0"
3739
pingora-proxy = "0.6.0"
3840
openssl = "0.10"
3941
rcgen = "0.14.6"
40-
instant-acme = "0.8.4"
42+
instant-acme = { version = "0.8.4", default-features = false, features = ["hyper-rustls", "ring"] }
43+
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-manual-roots", "json"] }
4144
x509-parser = "0.18.0"
4245
http = "1.4.0"

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ mod signals;
1818

1919
#[tokio::main]
2020
async fn main() -> ExitCode {
21+
rustls::crypto::ring::default_provider()
22+
.install_default()
23+
.expect("Failed to install rustls crypto provider");
24+
2125
let args = cli::get_cli_args();
2226

2327
if let Some(signal) = &args.signal {

0 commit comments

Comments
 (0)