Skip to content

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed #7

@AngieChilds

Description

@AngieChilds

http://stackoverflow.com/questions/5720484/how-to-solve-certificate-verify-failed-on-windows

solved with answer 6

Actually the best way I found to solve this in windows for Ruby itself, not just one gem, is to do the following:

Download http://curl.haxx.se/ca/cacert.pem into c:\railsinstaller\cacert.pem
Go to your Computer -> Advanced Settings -> Environment Variables

Create a new System Variable:

Variable: SSL_CERT_FILE

Value: C:\RailsInstaller\cacert.pem

Close all your command prompts, including your Rails server command prompt, etc. Start a new ruby irb prompt, and try the following:

$irb>require 'open-uri'
$irb>open('https://www.gmail.com')

It should all work now just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions