0
我嘗試執行HTTPS請求,並且在Emacs inf-ruby模式下失敗。但它在bash命令行中起作用。Emacs inf-ruby證書驗證失敗
irb(main):001:0> load ('./get-email-request.rb')
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from /usr/lib/ruby/1.9.1/net/http.rb:800:in `connect'
from /usr/lib/ruby/1.9.1/net/http.rb:800:in `block in connect'
from /usr/lib/ruby/1.9.1/timeout.rb:55:in `timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
from /usr/lib/ruby/1.9.1/net/http.rb:800:in `connect'
from /usr/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
from /usr/lib/ruby/1.9.1/net/http.rb:745:in `start'
from /usr/lib/ruby/1.9.1/net/http.rb:1285:in `request'
from /home/jyuan/projects/opensources/eloqua-ruby-request/eloqua-ruby-request.rb:52:in `request'
from /home/jyuan/projects/opensources/eloqua-ruby-request/eloqua-ruby-request.rb:31:in `get'
from /home/jyuan/projects/opensources/eloqua-ruby-request/examples/get-email-request.rb:10:in `<top (required)>'
from (irb):9:in `load'
from (irb):9
from /usr/bin/irb:12:in `<main>'
紅寶石配置是https://github.com/bbatsov/prelude/blob/master/modules/prelude-ruby.el。
以前有人遇到過這個嗎?
添加https://github.com/senny/rvm.el後效果很好 – 2015-02-08 05:11:39
隨時[回答自己的問題](http://stackoverflow.com/help/self-answer)。 – Chris 2015-02-08 13:07:50