July 30, 2014 — kyle.huynh205
[SOLVED] Rails error Windows 7 : SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
I faced this error SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed when I try to implement the following: JSON.parse(open(“http://api……”).read). I found the solution to fix this SSL error right from Windows, here is how :
- Download or click here to view into C:Ruby200-x64cacert.pem
- Go to your Computer -> Advanced Settings -> Environment Variables to create a new System Variable:
- Variable: SSL_CERT_FILE
- Value: C:Ruby200-x64cacert.pem