Ruby Net::HTTP responds with OpenSSL::SSL::SSLError “certificate verify failed” after certificate renewal
We recently renewed the SSL certificate of our site, and the following occurs on Mac OS El Capitan 10.11.3: require 'net/http' Net::HTTP.get URI('https://www.google.com') # => "<HTML>...</HTML>" # The site whose certificate got renewed Net::HTTP.get URI('https://www.example.com') # => OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed All my searches on Google and StackOverflow come up with answers suggesting a problem with the Ruby installation, but they seem to be related to older Ruby versions and I don't think this is the case here. Here is what I