Gabe Evans

A catchy tagline.

Fixing RubyGems SSL Issues (Certificate Verify Failed)

Can you guess what took a significant portion of my time debugging this afternoon? I was going about my usual business, cloning a new project and bundling when I encountered this deliciously vague error:

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3
read server certificate B: certificate verify failed
An error occurred while installing builder (3.1.4), and Bundler cannot
continue. Make sure that `gem install builder -v '3.1.4'` succeeds
before bundling.

I haven’t run into this one before, I thought to myself. I hadn’t updated any packages, changed any configurations, or done anything that could be the obvious cause of this issue. My first thought was to blame the repository I had cloned. Unfortunately, when I switched to another project I was greeted with the same message.