New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed #119
Comments
/cc @blowmage |
This is a common error when ruby is missing the needed SSL certificate configuration. Most ruby installers will add this configuration, but it looks like your install is missing it. The easiest way to resolve this is to check for a Here are some Stack Overflow questions that may help http://stackoverflow.com/questions/4528101/ssl-connect-returned-1-errno-0-state-sslv3-read-server-certificate-b-certificat |
Thanks @blowmage! @niaomingjian What did you use to install Ruby on your machine? Google search also turned up this recent post which may help |
@remi I used RubyInstaller to install Ruby 2.3.1. I tried those solutions before, but they didn't work. I tried again., downloaded SSL certificate(cacert.pem), put it in Though I could install jekyll successfully, running this datastore example still got that error. Even I uninstalled Ruby and reinstall it again. I still can't solve this problem. |
Can you post the full backtrace? Datastore uses GRPC to connect to the API, but the error you are reporting is coming from Faraday, and I'm not sure what is using Faraday. What version of google-cloud are you using? |
@niaomingjian can I close this issue? Not sure if this is still an issue moving forward. |
help please .. msf5 auxiliary(gather/shodan_search) > run [-] Auxiliary failed: OpenSSL::SSL::SSLError SSL_connect returned=1 errno=0 state=error: certificate verify failed |
When I ran Cloud Datastore Sample locally on Win7 x64, I got this error:
After I added
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
in quickstart_spec.rb and sample_spec.rb, this example ran successfully.At the same time, there's a warning: already initialized constant OpenSSL::SSL::VERIFY_PEER in the log.
How to solve this problem correctly?
The text was updated successfully, but these errors were encountered: