Software⏱️ 2 min read📅 2026-05-31

How to Fix: bundle install fails with SSL certificate verification error

Bundler fails with SSL certificate verification error on CentOS 5.5, manual gem install succeeds.

Quick Answer: Update the system's OpenSSL version to a compatible one or use the --skip-verify option when running bundle install.

To resolve the SSL certificate verification error when running bundle install, follow these proven troubleshooting steps:

🔧 Proven Troubleshooting Steps

Method 1: Update Bundler and Gems

  1. Step 1: Run bundler update --force to ensure you're using the latest version of Bundler.

Method 2: Install SSL Certificates

  1. Step 1: Run sudo yum install nss to install the OpenSSL library.

Method 3: Disable SSL Verification

  1. Step 1: Run bundle config set --local https://rubygems.org cert:none to disable SSL verification.

If none of the above methods resolve the issue, you may need to investigate further and try updating your system's OpenSSL library or using a different RubyGems mirror.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions