Skip to content
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

Doesn't fix the issue #2

Open
sgeef opened this issue Aug 9, 2016 · 2 comments
Open

Doesn't fix the issue #2

sgeef opened this issue Aug 9, 2016 · 2 comments

Comments

@sgeef
Copy link

sgeef commented Aug 9, 2016

I have installed your gem, restarted my console. but it's not fixing the SSL error.
Any ideas?

ruby version: ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]

Error after and before installing the gem: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Code used for the test:

url = URI.parse("https://www.google.com/")
http = Net::HTTP.new(url.host, url.port)
http.open_timeout = 10
http.read_timeout = 10
path = url.path
path = '/' if path == ''
path += '?' + url.query unless url.query.nil?
http.use_ssl = true
request = Net::HTTP::Get.new(path, nil)
response = http.request(request)
puts response.inspect
@chrisdpeters
Copy link
Member

@sgeef I'll have to try installing Ruby 2.2 to see what kinds of results that I get. I have been running 2.1 on Windows because that's what RubyInstaller was recommending at the time. I haven't tried connecting it to google.com, however. The issue that I was running across was with AWS/S3.

@sgeef
Copy link
Author

sgeef commented Aug 19, 2016

@chrisdpeters, if you wanne give it a go. it would make me very happy. As it seems i have tested every possible solution on the web and not finding a solution. i'm already trying to fix this for over a month.

The only solution that works for me currently is setting the verify mode to none, which isn't the most beatifull, but at least let's me continue my work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants