Fix for rubygems SSL certificate error on Windows
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
- Download R1 GlobalSign Root Certificate: https://secure.globalsign.net/cacert/Root-R1.crt
- Save it somewhere local, so you can easily access it from a command prompt.
- Convert to a PEM file.
openssl x509 -in Root-R1.crt -out GlobalSignRootR1.pem -outform PEM -inform DEF
- 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)