When I'm trying to connect to a WSDL( I'm writing a client to connect to a WSDL), I'm getting following error:
>/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/httpi-2.0.2/lib/httpi/adapter/net_http.rb:36:in `rescue in request': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (HTTPI::SSLError)
Ruby Version :2.1, Windows 7 64bit OS. Following are the options i tried
1. I tried changing source to http://rubygems.org/ instead of https://rubygems.org/ as suggested in some posts..
2. I updated gem version to 2.2.3
3. Added Cacert.pem
None of these helped..
Could you let me know how this can be solved?
Stuck with this issue for past few days.
Appreciate help
Related
Whenever I follow the instructions on the compass-style.org website I keep getting this error in the terminal:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
MARS:Enrollment MARS$ gem install compass
I don't know how to troubleshoot things like this and was wondering if anyone had encountered this issue before and how they resolved it.
Thanks.
I am trying to get SASS installed on my windows machine at work, however after installing ruby I cannot seem to install it ..
Ruby Version - 2.1.5
The error I am getting when running gem install sass on the command prompt :
ERROR: Could not find a valid gem 'SASS' ,.= 0., here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3
read server certificate B: certificate verify failed https://api.rubygems.org/latest_specs.4.8.gx
Has anyone else encountered this? Know a way around it??
Turns out the latest download of ruby is having issues with it's SSL cert .. Installed an older version - works a treat
I am using Windows 7 and trying to install rspec, but I get the following error when I type gem install rspec into the terminal.
ERROR: Could not find a valid gem 'rspec' <>=0>, here is why:
Unable to download data from https://rubygems.org/ - SSL_connect SYSCA
LL returned=5 errno=0 state=SSLv2/v3 read server hello A <https://rubygems.org/l
atest_rspecs.4.8.gz>
ERROR: Possible alternatives: rspec
I've looked all over the internet for a solution, but I haven't managed to find anything.
The "SSL" part of the error message sounds similar to this issue with the certificates you have locally and the certificate that rubygems.org is using. There are specific instructions for Windows that show you how to download an updated certificate file and use it; it might be worth a shot.
This question already has answers here:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
(37 answers)
Closed 8 years ago.
I'm setting-up Redmine to poll e-mails from gmail via IMAP. An attempt to run the appropriate Ruby task causes the following error:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
The error occurs when Ruby attempts to connect imap.gmail.com via OpenSSL, in the following code line:
imap = Net::IMAP.new(host, port, ssl)
When I try to connect the above host from OpenSSL command line, it gets connected successfully.
I understand that Ruby doesn't find some certificates and I saw various solution proposals, but unfortunately I still can't figure out how to sort out this issue (I do not use rvm).
I tried to disable the verification by setting OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE, but got "dynamic constant assignment" error.
My environment:
Linux debianvm 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux
root#debianvm:~# ruby --version
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]
root#debianvm:~# rails --version
Rails 3.2.13
The issue has been solved by simply installing root certificates:
apt-get install openssl ca-certificates
How to fix this error that happens on Debian Linux using ssl commands with ruby ?
/usr/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect returned=1 errno=0 state=unknown state: unsupported protocol (OpenSSL::SSL::SSLError)
I found the answer, Iḿ posting this as a reference for other users.
You need to change ruby version to at least 1.8.7-p358
I had this error after upgrading openssl libs from openssl_1.0.0h-1 (amd64) to openssl_1.0.1-4.
I'm on Debian testing wheezy.
Just use https://github.com/sstephenson/rbenv to install ruby 1.8.7-p358. I had the standard ruby 1.8.7.352 from debian testing.
Hope it helps, if so comment !