From 1dab552243f0a9274691aa5584f176488b34172c Mon Sep 17 00:00:00 2001 From: Alan O'Cais Date: Fri, 10 Apr 2026 15:53:15 +0200 Subject: [PATCH] Also set REQUESTS_CA_BUNDLE,SSL_CERT_FILE on RHEL-like systems --- init/modules/EESSI/2023.06.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init/modules/EESSI/2023.06.lua b/init/modules/EESSI/2023.06.lua index 3847502e..7db50728 100644 --- a/init/modules/EESSI/2023.06.lua +++ b/init/modules/EESSI/2023.06.lua @@ -233,11 +233,13 @@ if os.getenv("EESSI_MODULE_STICKY") then load_message = load_message .. " (requires '--force' option to unload or purge)" end --- set CURL_CA_BUNDLE on RHEL-based systems +-- set CURL_CA_BUNDLE and friends on RHEL-based systems ca_bundle_file_rhel = "/etc/pki/tls/certs/ca-bundle.crt" if isFile(ca_bundle_file_rhel) then pushenv("CURL_CA_BUNDLE", ca_bundle_file_rhel) - eessiDebug("Setting CURL_CA_BUNDLE to " .. ca_bundle_file_rhel) + pushenv("REQUESTS_CA_BUNDLE", ca_bundle_file_rhel) + pushenv("SSL_CERT_FILE", ca_bundle_file_rhel) + eessiDebug("Setting CURL_CA_BUNDLE,REQUESTS_CA_BUNDLE,SSL_CERT_FILE to " .. ca_bundle_file_rhel) end if mode() == "load" then