"Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/mime-types-1.22.gem)
An error occured while installing mime-types (1.22), and Bundler cannot continue. Make sure that `gem install mime-types -v '1.22'` succeeds before bundling."
Where the gem name maybe different, it will be helpful to have a look at this solution: https://gist.github.com/fnichol/867550
It worked like a charm for me!
Hope it helps