[chef] SSL problem with embedded ruby on Windows?


Chronological Thread 
  • From: Jeppe Nejsum Madsen < >
  • To: " " < >
  • Subject: [chef] SSL problem with embedded ruby on Windows?
  • Date: Fri, 14 Jun 2013 09:44:34 +0200

Hi,

I seem to have a problem with the embedded ruby when running on windows. It looks like the cacert.pem file is not located correctly:

C:\>irb
irb(main):001:0> require 'open-uri'
=> true
irb(main):002:0> open "https://google.com"
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
        from C:/opscode/chef/embedded/lib/ruby/1.9.1/net/http.rb:799:in `connect'

Not sure if this is expected or not. Setting SSL_CERT_FILE solves the issue.

There seems to be at least two ca-bundle.pem files in the embedded ruby, but not sure if they are supposed to be located automagically?

/Jeppe





Archive powered by MHonArc 2.6.16.

§