ruby - "certificate verify failed" despite setting CACERT.PEM environment variable in Windows 10 -
i have set environment variable ssl_cert_file correctly -- here's cmd output set:
ssl_cert_file=c:\railsinstaller\cacert.pem
here's link have in cacert.pem: cacert.pem
here's cmd windows output running irb:
c:\users\anon\prog\workspace>irb irb(main):001:0> require 'open-uri' => true irb(main):002:0> open ('https://www.youtube.com') openssl::ssl::sslerror: ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/net/http.rb:923:in `connect' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/net/http.rb:923:in `block in connect' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/timeout.rb:75:in `timeout' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/net/http.rb:923:in `connect' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/net/http.rb:863:in `do_start' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/net/http.rb:852:in `start' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/open-uri.rb:313:in `open_http' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/open-uri.rb:724:in `buffer_open' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/open-uri.rb:210:in `block in open_loop' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/open-uri.rb:208:in `catch' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/open-uri.rb:208:in `open_loop' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/open-uri.rb:149:in `open_uri' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/open-uri.rb:704:in `open' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/open-uri.rb:34:in `open' (irb):2 c:/railsinstaller/ruby2.1.0/bin/irb:11:in `<main>' irb(main):003:0>
Comments
Post a Comment