0.03
No commit activity in last 3 years
No release in over 3 years
Get rid of this lovely error for good, especially on Windows: `SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed`
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 11.1.2
~> 3.4.0
 Project Readme

Net::HTTP SSL Fix Ruby Gem

Build Status

A Community-updated Net::HTTP certificate authority file hack. Very useful for authoring Ruby-based HTTP clients that must run on Windows.

Get rid of this lovely error for good, especially on Windows:

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

No more / (╯°□°)╯︵ ┻━┻!

This gem basically configures Net::HTTP to use a certificate authority PEM file downloaded from the cURL project and included directly into the gem. This requires that you periodically update this gem as we do.

Installation

Add to your Gemfile:

gem 'net_http_ssl_fix', require: 'net_http_ssl_fix'

Then run bundle install.

No more 😢.

Updating the cacert.pem

Every now and then, you may get the SSL_connect error again, especially if you don't make any attempts to update your install of this gem.

In the event that this gem isn't updated with the latest cacert.pem from the cURL project, you can submit a pull request with the file at data/cacert.pem replaced with a freshly-downloaded version from this URL:

https://curl.haxx.se/ca/cacert.pem

Credit Where Credit Is Due

This tiny gem is indebted to John Bachir, particularly his Earth-shattering Gist, How to set the certificate file for Net::HTTP library-wide.

License

The MIT License (MIT)

Copyright (c) 2016-2018 Minimal Orange, LLC