Ruby error when updating Compass on Mac OS 10.11.3 - ruby

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.

Related

SSL Error in Ruby on Windows 7 64 bit

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

Cannot install SASS on windows 7 (64 bit)

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

Not found af from appFog to download

I'd like to download and install af from appFog but when I execute the needed command in the Command Prompt (in Windows) I obtain the next result:
C:\Users\Jose>gem install af
ERROR: Could not find a valid gem 'af' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz)
do any body what is the problem? I have read about the temporal stoped sing up service of appfog, is this the reason?
I have read about the command line exit but I don't have found any response.
Thanks.
Jose
The https source has a certificate error. Add the http version. It will give you a warning but if you add it, it will work.
gem source -a http://rubygems.org

Error installing rspec (gem install rspec) on Windows

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.

"SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed" [duplicate]

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

Resources