You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ssl: Enable SSL/TLS support using the platform-default TLS backend. On Windows this is Schannel, on macOS Secure Transport, and OpenSSL (or equivalent) on all other platforms. Enabled by default.
Thanks for your work on the project. Is there a way to make OpenSSL as the TLS backend on all platforms?
The text was updated successfully, but these errors were encountered:
Not currently, no. There are a few reasons for this:
Cargo features don't play super nice with different targets unfortunately. I kinda wish that we could have an openssl feature that would be enabled by default for Linux targets but disabled for other targets, but still be enablable on any target. But Cargo features don't work like that.
Using OpenSSL on macOS and Windows is not a common desire. Honestly, OpenSSL kinda sucks and I'm already sad to be using it on Linux -- why use it on another platform when you have something better available? If the demand is low, I am not sure if we want the maintenance burden of such a feature.
Compiling against OpenSSL on Windows specifically is notoriously complicated with MSVC last time I tried; I'm not even sure if we'd be able to make that work out of the box. (It's fine on macOS.)
After upgrading curl-sys from 0.4.56 to 0.4.68, our cargo-built binary (with Schannel as the TLS backend) is failing with SSL: Couldn't make sense of the data in the certificate . And we have another way to build Rust code, which build curl with OpenSSL, and it works. So I wanted to try to build make curl use OpenSSL with cargo build.
Thanks for your work on the project. Is there a way to make
OpenSSL
as the TLS backend on all platforms?The text was updated successfully, but these errors were encountered: