Skip to content

Commit 022cac9

Browse files
ocaisasmoors
authored andcommitted
Also set REQUESTS_CA_BUNDLE,SSL_CERT_FILE on RHEL-like systems
1 parent c2515ff commit 022cac9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

init/modules/EESSI/2023.06.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,13 @@ if os.getenv("EESSI_MODULE_STICKY") then
240240
load_message = load_message .. " (requires '--force' option to unload or purge)"
241241
end
242242

243-
-- set CURL_CA_BUNDLE on RHEL-based systems
243+
-- set CURL_CA_BUNDLE and friends on RHEL-based systems
244244
ca_bundle_file_rhel = "/etc/pki/tls/certs/ca-bundle.crt"
245245
if isFile(ca_bundle_file_rhel) then
246246
pushenv("CURL_CA_BUNDLE", ca_bundle_file_rhel)
247-
eessiDebug("Setting CURL_CA_BUNDLE to " .. ca_bundle_file_rhel)
247+
pushenv("REQUESTS_CA_BUNDLE", ca_bundle_file_rhel)
248+
pushenv("SSL_CERT_FILE", ca_bundle_file_rhel)
249+
eessiDebug("Setting CURL_CA_BUNDLE,REQUESTS_CA_BUNDLE,SSL_CERT_FILE to " .. ca_bundle_file_rhel)
248250
end
249251

250252
if mode() == "load" then

0 commit comments

Comments
 (0)