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
While debugging a Rust problem, I just ran into this error on a Rocky 8 node:
$ cargo add bitvec
Updating crates.io index
error: download of config.json failed
Caused by:
failed to download from `https://index.crates.io/config.json`
Caused by:
[77] Problem with the SSL CA cert (path? access rights?) (error setting certificate file: /etc/ssl/certs/ca-certificates.crt)
I can reproduce this on Rocky Linux 9.3 with EESSI 2026.06. CARGO_HTTP_CAINFO fixes cargo, but other programs that link to the EESSI libcurl.so.4 still fail.
Only the curl binary reads CURL_CA_BUNDLE, and libcurl 8.17.0 ignores SSL_CERT_FILE.
So cargo 1.94.1, or any small C program that calls curl_easy_perform, stops with error 77 on RHEL:
[77] Problem with the SSL CA cert (path? access rights?) (error adding trust anchors from file: /etc/ssl/certs/ca-certificates.crt)
Minimal reproducer, with CURL_CA_BUNDLE, SSL_CERT_FILE, SSL_CERT_DIR and CARGO_HTTP_CAINFO unset:
Basically, the build is buggy, since curl-config --ca prints /etc/ssl/certs/ca-certificates.crt for cURL 8.17.0 in 2026.06 and for 8.7.1, 8.11.1 and 8.14.1 in 2025.06.
Configure found that path when cURL was built and compiled it in.
This is the same bug as software-layer#46, and the second option listed there still looks right to me: build cURL so that it uses the compat layer certificates.
Adding --with-ca-fallback alone does not work.
In curl 8.17.0, lib/vtls/openssl.c returns CURLE_SSL_CACERT_BADFILE as soon as the compiled-in bundle is missing, and the fallback code comes after that return.
The bundle and path also have to stay unset:
With the bundle and path unset, libcurl uses the OpenSSL default store, and the 2026.06 OpenSSL has OPENSSLDIR in the compat layer.
I rebuilt cURL 8.17.0-GCCcore-15.2.0 that way with a parse hook for 2025.06 and 2026.06.
The C program, curl and cargo search serde against the rebuilt library then all exit 0 on Rocky Linux 9.3 and on Ubuntu 24.04, with no CA variables set.
One caveat: cargo only picks this up once Rust links to the rebuilt cURL.
I think this should be in a PR that adds the hook to eb_hooks.py? CURL_CA_BUNDLE, #190 could stay as it is.
A 2025.06 rebuild for 8.7.1, 8.11.1 and 8.14.1 is still to do, and cargo needs a Rust built against the new libcurl. CARGO_HTTP_CAINFO in the module file is still worth adding for the RHEL path.
Activity
HaoZeke commentedon Nov 4, 2026
I can reproduce this on Rocky Linux 9.3 with EESSI 2026.06.
CARGO_HTTP_CAINFOfixescargo, but other programs that link to the EESSIlibcurl.so.4still fail.Only the
curlbinary readsCURL_CA_BUNDLE, and libcurl 8.17.0 ignoresSSL_CERT_FILE.So
cargo1.94.1, or any small C program that callscurl_easy_perform, stops with error 77 on RHEL:Minimal reproducer, with
CURL_CA_BUNDLE,SSL_CERT_FILE,SSL_CERT_DIRandCARGO_HTTP_CAINFOunset:Basically, the build is buggy, since
curl-config --caprints/etc/ssl/certs/ca-certificates.crtfor cURL 8.17.0 in 2026.06 and for 8.7.1, 8.11.1 and 8.14.1 in 2025.06.Configure found that path when cURL was built and compiled it in.
This is the same bug as software-layer#46, and the second option listed there still looks right to me: build cURL so that it uses the compat layer certificates.
Adding
--with-ca-fallbackalone does not work.In curl 8.17.0,
lib/vtls/openssl.creturnsCURLE_SSL_CACERT_BADFILEas soon as the compiled-in bundle is missing, and the fallback code comes after that return.The bundle and path also have to stay unset:
With the bundle and path unset, libcurl uses the OpenSSL default store, and the 2026.06 OpenSSL has
OPENSSLDIRin the compat layer.I rebuilt cURL 8.17.0-GCCcore-15.2.0 that way with a parse hook for 2025.06 and 2026.06.
The C program,
curlandcargo search serdeagainst the rebuilt library then all exit 0 on Rocky Linux 9.3 and on Ubuntu 24.04, with no CA variables set.One caveat:
cargoonly picks this up once Rust links to the rebuilt cURL.I think this should be in a PR that adds the hook to
eb_hooks.py?CURL_CA_BUNDLE, #190 could stay as it is.HaoZeke commentedon Nov 12, 2026
The cURL side is now in three PRs:
EB_cURLeasyblock, which passes--with-ca-bundle=<sysroot>/etc/ssl/certs/ca-certificates.crtwhen--sysrootis setI went with the sysroot bundle after discussing with @casparvl since it seems likely that we'd want this to be from the compat layer.
Test builds with EasyBuild 5.4.2 under EESSI-extend:
curl-config --cais/cvmfs/software.eessi.io/versions/2026.06/compat/linux/x86_64/etc/ssl/certs/ca-certificates.crt/cvmfs/software.eessi.io/versions/2026.06/compat/linux/aarch64/etc/ssl/certs/ca-certificates.crtcurl -v https://gh.zap.shverifies against that bundle in all three.Test reports are on easybuilders/easybuild-easyconfigs#27426.
A 2025.06 rebuild for 8.7.1, 8.11.1 and 8.14.1 is still to do, and
cargoneeds a Rust built against the new libcurl.CARGO_HTTP_CAINFOin the module file is still worth adding for the RHEL path.