Skip to content

Instantly share code, notes, and snippets.

Created March 26, 2018 00:17
What would you like to do?
Script to download the updated CA file to RubyGems on Windows will work. From the blog post:
$CACertFile = Join-Path -Path $ENV:AppData -ChildPath 'RubyCACert.pem'
If (-Not (Test-Path -Path $CACertFile)) {
"Downloading CA Cert bundle.."
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri '' -UseBasicParsing -OutFile $CACertFile | Out-Null
"Setting CA Certificate store set to $CACertFile.."
[System.Environment]::SetEnvironmentVariable('SSL_CERT_FILE',$CACertFile, [System.EnvironmentVariableTarget]::Machine)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment