Error while trying to install rmagick

I’m trying to install “rmagick”.

When I did the following:

gem install rmagick

I got the following:

ERROR: Could not find a valid gem ‘rmagick’ (>= 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://api.rubygems.org/latest_specs.4.8.gz)

How can I fix this issue?

Thanks.

SW Engineer wrote in post #1164070:

I got the following:

ERROR: Could not find a valid gem ‘rmagick’ (>= 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 (

try :

gem source -a http://rubygems.org/

Regis d’Aubarede wrote in post #1164118:

SW Engineer wrote in post #1164070:

I got the following:

ERROR: Could not find a valid gem ‘rmagick’ (>= 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 (

try :

gem source -a http://rubygems.org/

Thanks for your reply. Should I replace “source” here?