Ssl cert error for 3rd party gems repository

Skip to first unread message

Saba Taseer

Nov 16, 2015, 11:36:35 AM11/16/15
to ruby-bundler
I have a ruby application, that needs gems from my proprietary source location. When I try to run bundle install it gives an error

> There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.

When I try to install the same gem and version using gem intall on command line, it succeeds. The certificates for the site are configured in `/etc/ca-certificates.conf`

After this I did following each completing without error

gem install openssl
rvm get head
rvm pkg remove
rvm requirements run
rvm reinstall 1.9.3
cd ~/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/ssl_certs/

Copied the certificates for the site from `/etc/ssl/certs/`.

`bundle install` fails with the above error, specifying the gem actually failing. If I do `gem install` for the errored gem, it succeeds.

I have also tried copying certs in bundler ssl_certs directory, but that didnt help too.

It seems the bundler cant find the certificates required. Any ideas where they should be going other than the paths mentioned above?

I am using ubuntu 10.04.4 lucid for development.

Saba Taseer

Nov 17, 2015, 6:34:15 PM11/17/15
to ruby-bundler
As a clarification I am using Gem in a box as gem server. This server is maintained by me as well.
Reply all
Reply to author
0 new messages