Skip to content

Commit 1dab552

Browse files
committed
Also set REQUESTS_CA_BUNDLE,SSL_CERT_FILE on RHEL-like systems
1 parent 649c9d8 commit 1dab552

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
@@ -233,11 +233,13 @@ if os.getenv("EESSI_MODULE_STICKY") then
233233
load_message = load_message .. " (requires '--force' option to unload or purge)"
234234
end
235235

236-
-- set CURL_CA_BUNDLE on RHEL-based systems
236+
-- set CURL_CA_BUNDLE and friends on RHEL-based systems
237237
ca_bundle_file_rhel = "/etc/pki/tls/certs/ca-bundle.crt"
238238
if isFile(ca_bundle_file_rhel) then
239239
pushenv("CURL_CA_BUNDLE", ca_bundle_file_rhel)
240-
eessiDebug("Setting CURL_CA_BUNDLE to " .. ca_bundle_file_rhel)
240+
pushenv("REQUESTS_CA_BUNDLE", ca_bundle_file_rhel)
241+
pushenv("SSL_CERT_FILE", ca_bundle_file_rhel)
242+
eessiDebug("Setting CURL_CA_BUNDLE,REQUESTS_CA_BUNDLE,SSL_CERT_FILE to " .. ca_bundle_file_rhel)
241243
end
242244

243245
if mode() == "load" then

0 commit comments

Comments
 (0)