From 84dc59623e8594c024fd5a6ae8c48d8ab9c7134c Mon Sep 17 00:00:00 2001 From: Alan O'Cais Date: Wed, 25 Mar 2026 12:57:57 +0100 Subject: [PATCH] Make sure to set CURL_CA_BUNDLE on RHEL-based systems when using EESSI module --- init/modules/EESSI/2023.06.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init/modules/EESSI/2023.06.lua b/init/modules/EESSI/2023.06.lua index f408e90c..3847502e 100644 --- a/init/modules/EESSI/2023.06.lua +++ b/init/modules/EESSI/2023.06.lua @@ -233,6 +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 +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) +end + if mode() == "load" then if not os.getenv("EESSI_MODULE_QUIET_LOAD") then LmodMessage(load_message)