Skip to content

Commit

Permalink
Remove environment variables for TRE CA Certificate
Browse files Browse the repository at this point in the history
This was a bad idea and breaks aws cli.
  • Loading branch information
AaronJackson committed Dec 11, 2024
1 parent a58b084 commit 7097afd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions modules/hic-tre-cert.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,3 @@ New-Item -Path "C:\Program Files\Mozilla Firefox\" -Name distribution -ItemType
}
}
"@ | Out-File -Encoding ASCII -FilePath "C:\Program Files\Mozilla Firefox\distribution\policies.json"

# This covers both conda and CRAN, but it also overrides their own
# provided CA chain files. That's probably ok given we don't allow
# access to the internet.
[Environment]::SetEnvironmentVariable(
"SSL_CERT_FILE",
"C:\Tools\hic-tre.dundee.ac.uk.crt",
[System.EnvironmentVariableTarget]::User)
[Environment]::SetEnvironmentVariable(
"REQUESTS_CA_BUNDLE",
"C:\Tools\hic-tre.dundee.ac.uk.crt",
[System.EnvironmentVariableTarget]::User)
[Environment]::SetEnvironmentVariable(
"CURL_CA_BUNDLE",
"C:\Tools\hic-tre.dundee.ac.uk.crt",
[System.EnvironmentVariableTarget]::User)

0 comments on commit 7097afd

Please sign in to comment.