HomeFreeBSD

lang/rust: Make OpenSSL use the system default truststore in Cargo

Description

lang/rust: Make OpenSSL use the system default truststore in Cargo

Cargo uses curl-rust and git2-rs (which uses curl-rest as well).
Unfortunately, git2-rs calls openssl_probe::init_ssl_cert_env_vars()
unconditionally which breaks the process environment by setting an invalid
value for SSL_CERT_DIR and then the system default truststore is circumvented,
resulting in certificate validation errors even if certctl(8) manages
everything nicely.

Upstream issues:

Reviewed by: jrm (mentor), mikael (rust)
MFH: 2025Q1
Differential Revision: https://reviews.freebsd.org/D49120

(cherry picked from commit 078082660317490b1a2faf93ddce4b49c6b165dc)

Details

Provenance
michaeloAuthored on Feb 24 2025, 9:17 AM
Reviewer
jrm
Differential Revision
D49120: lang/rust: Make OpenSSL use the system default truststore in Cargo
Parents
R11:5f31b919930a: audio/lollypop: Update 1.4.16 → 1.4.41, improve port
Branches
Unknown
Tags
Unknown