Skip to content

Commit 4d539f0

Browse files
fix: Support self-signed SSL certs in macOS keychain
1 parent 73efd64 commit 4d539f0

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ clap = { version = "4.1.6", default-features = false, features = [
2424
] }
2525
clap_complete = "4.4.3"
2626
console = "0.15.5"
27-
curl = { version = "0.4.46", features = ["static-curl", "static-ssl"] }
27+
curl = "0.4.46"
2828
dirs = "4.0.0"
2929
dotenvy = "0.15.7"
3030
elementtree = "1.2.3"
@@ -127,6 +127,12 @@ openssl-probe = "0.1.5"
127127
[target."cfg(windows)".dependencies]
128128
windows-sys = { version = "0.59.0", features = ["Win32_Storage_FileSystem"] }
129129

130+
# Use static curl/SSL on non-macOS platforms
131+
# We link dynamically on macOS; that way we can support self-signed certificates
132+
# trusted in the macOS keychain.
133+
[target."cfg(not(target_os = \"macos\"))".dependencies]
134+
curl = { version = "0.4.46", features = ["static-curl", "static-ssl"] }
135+
130136
# We optimize the release build for size.
131137
[profile.release]
132138
opt-level = 2 # I obtained the smallest binary size with opt-level 2 on my system.

0 commit comments

Comments
 (0)