Skip to content

Instantly share code, notes, and snippets.

@vikpe
Last active January 6, 2018 20:34
Show Gist options
  • Save vikpe/075328773ecc602eebc29d190b568190 to your computer and use it in GitHub Desktop.
Save vikpe/075328773ecc602eebc29d190b568190 to your computer and use it in GitHub Desktop.
Rubygems SSL certificate error fix for Windows

Fix for rubygems SSL certificate error on Windows

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
  1. Download R1 GlobalSign Root Certificate: https://secure.globalsign.net/cacert/Root-R1.crt
  2. Save it somewhere local, so you can easily access it from a command prompt.
  3. Convert to a PEM file. openssl x509 -in Root-R1.crt -out GlobalSignRootR1.pem -outform PEM -inform DEF
  4. Copy the new GlobalSignRootR1.pem file that it creates into: D:\Ruby23-x64\lib\ruby\2.3.0\rubygems\ssl_certs\ <-- this path will obviously be different depending on where you've got Ruby installed!

(source main thread: https://gist.github.com/luislavena/f064211759ee0f806c88)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment