Comments (7)
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 SSL_CERT_FILE
environment variable. If it is missing, then adding it (and the certificate file it points to) should fix this.
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
http://stackoverflow.com/questions/37336526/getting-ssl-error-in-ruby-on-windows
from ruby-docs-samples.
/cc @blowmage
from ruby-docs-samples.
Thanks @blowmage!
@niaomingjian What did you use to install Ruby on your machine?
Google search also turned up this recent post which may help
https://superdevresources.com/ssl-error-ruby-gems-windows/
from ruby-docs-samples.
@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 Ruby23-x64\lib\ruby\2.3.0\rubygems\ssl_certs
directory and set SSL_CERT_FILE
environment variable.
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.
from ruby-docs-samples.
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?
from ruby-docs-samples.
@niaomingjian can I close this issue? Not sure if this is still an issue moving forward.
from ruby-docs-samples.
help please ..
msf5 auxiliary(gather/shodan_search) > run
[-] Auxiliary failed: OpenSSL::SSL::SSLError SSL_connect returned=1 errno=0 state=error: certificate verify failed
[-] Call stack:
[-] /opt/metasploit-framework/embedded/lib/ruby/2.4.0/net/protocol.rb:44:in connect_nonblock' [-] /opt/metasploit-framework/embedded/lib/ruby/2.4.0/net/protocol.rb:44:in
ssl_socket_connect'
[-] /opt/metasploit-framework/embedded/lib/ruby/2.4.0/net/http.rb:948:in connect' [-] /opt/metasploit-framework/embedded/lib/ruby/2.4.0/net/http.rb:887:in
do_start'
[-] /opt/metasploit-framework/embedded/lib/ruby/2.4.0/net/http.rb:876:in start' [-] /opt/metasploit-framework/embedded/lib/ruby/2.4.0/net/http.rb:1407:in
request'
[-] /opt/metasploit-framework/embedded/framework/modules/auxiliary/gather/shodan_search.rb:59:in shodan_query' [-] /opt/metasploit-framework/embedded/framework/modules/auxiliary/gather/shodan_search.rb:109:in
run'
[*] Auxiliary module execution completed
from ruby-docs-samples.
Related Issues (20)
- index.ipynb.txt
- rspec: E2E tests Can make request to service failed HOT 2
- rspec: Cloud Storage can upload and get public URL of uploaded file failed HOT 16
- rspec: Websockets Sample returns HTML failed HOT 16
- rspec: Websockets Sample responds to chat failed HOT 16
- rspec: Cloud Storage can upload and get public URL of uploaded file failed HOT 1
- rspec: Ruby Endpoints Sample POST failed HOT 1
- rspec: PubSub accepts a push failed
- rspec: PubSub accepts an authenticated push failed
- rspec: Metadata server on Google App Engine displays IP address read from metadata server failed HOT 2
- rspec: Metadata server on Google App Engine displays zone read from metadata server failed HOT 7
- rspec: Google Cloud Spanner API samples query nested struct field failed HOT 1
- rspec: Google Cloud Spanner API samples query data with index failed HOT 1
- rspec: Google Cloud Spanner API samples update data failed HOT 1
- rspec: Google Cloud Spanner Postgres DML examples spanner_postgresql_update_dml_returning failed HOT 1
- rspec: Google Cloud Spanner Sequence examples spanner_alter_sequence failed HOT 1
- GSP943 i face a bug on Task 4. Deploying the app to Cloud Run HOT 3
- rspec: Google Cloud Spanner API samples query data with numeric column failed HOT 1
- rspec: Google Cloud Spanner Database roles Add and Drop roles failed
- rspec: Metadata server on Google App Engine displays IP address read from metadata server failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-docs-samples.