Reproduce the error

To reproduce in base ruby and AWS connections on Windows, run irb:

require open-uri

You will see a similar stack trace to

Newer versions of Amazon SDKs include ca-bundle.crt from

Partial Solution

  1. Download the bundled version from
  2. Add a Windows system variable named SSL_CERT_FILE, and the value should be the path - C:\....\ca-bundle.crt.

Trouble on the Stripe front

I could open just fine, but for some reason I started getting these same SSL verify thangs from Stripe when using their gem. Turns out they bundle …

What worked for me was dropping into Cygwin and overwriting the Stripe bundle with the ca-certificates package bundle:

cp /etc/ssl/certs/ca-bundle.crt /cygdrive/c/Ruby21-x64/lib/ruby/gems/2.1.0/gems/stripe-1.35.1/lib/data/ca-certificates.crt

146 words. Post tags: certificate, TLS, ruby, and Windows.

Post content is written by Jason Zerbe and licensed CC BY-NC 3.0.