Ruby on rails 捆绑程序:读取服务器证书B:证书验证失败(OpenSSL::SSL::SSLError)

Ruby on rails 捆绑程序:读取服务器证书B:证书验证失败(OpenSSL::SSL::SSLError),ruby-on-rails,ruby,bundle,Ruby On Rails,Ruby,Bundle,我使用windows,执行bundle或bundle安装时出错: RubyGems Environment: - RUBYGEMS VERSION: 2.0.0 - RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [i386-mingw32] - INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: C:/RailsIns

我使用windows,执行
bundle
bundle安装时出错:

RubyGems Environment:
- RUBYGEMS VERSION: 2.0.0
- RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby1.9.3/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
 - C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
 - C:/Users/Usuario/.gem/ruby/1.9.1
- GEM CONFIGURATION:
 - :update_sources => true
 - :verbose => true
 - :backtrace => false
 - :bulk_threshold => 1000
 - REMOTE SOURCES:
 - http://rubygems.org/
错误消息:

Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/lib/bundler/v
endor/net/http/persistent/ssl_reuse.rb:70:in `connect': SSL_connect returned=1 e
rrno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL
::SSL::SSLError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in `block in connect'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-           1.3.0/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in `connect'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:750:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/net/http/persistent.rb:628:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/net/http/persistent.rb:570:in `connection_for'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/net/http/persistent.rb:930:in `request'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/fetcher.rb:195:in `fetch'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/fetcher.rb:169:in `use_api'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:223:in `block in remote_specs'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:223:in `select'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:223:in `remote_specs'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:162:in `fetch_specs'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:66:in `specs'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:192:in `block (2 levels) in index'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:189:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:189:in `block in index'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/index.rb:9:in `build'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:185:in `index'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:179:in `resolve'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:114:in `specs'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:109:in `resolve_remotely!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/installer.rb:83:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/installer.rb:14:in `install'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/cli.rb:247:in `install'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/thor/task.rb:27:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/thor.rb:344:in `dispatch'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/thor/base.rb:434:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
bin/bundle:20:in `block in <top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
bin/bundle:20:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/bin/bundle:23:in `load'
from C:/RailsInstaller/Ruby1.9.3/bin/bundle:23:in `<main>'
不幸的是,发生了一个致命错误。请看打包机
故障排除文档位于http://bit.ly/bundler-issues. 谢谢
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/lib/bundler/v
endor/net/http/persistent/ssl_-reuse.rb:70:in'connect':ssl_-connect返回=1 e
rrno=0状态=SSLv3读取服务器证书B:证书验证失败(OpenSSL
::SSL::SSLError)
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/net/http/persistent/ssl\u reuse.rb:70:in`block in connect'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:54:in'timeout'
从C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:99:in'timeout'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent/ssl\u reuse.rb:70:in“connect”
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:755:in'do_start'
从C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:750:in'start'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/net/http/persistent.rb:628:in'start'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/net/http/persistent.rb:570:in'connection_for'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/net/http/persistent.rb:930:in'request'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/fetcher.rb:195:in'fetch'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/fetcher.rb:169:in'use\u api'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:223:in`block in remote_specs'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:223:in'select'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:223:in'remote_specs'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:162:in'fetch_specs'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/source/rubygems.rb:66:in'specs'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:192:in'block(2层)in index'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:189:in'each'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:189:in'block in index'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/index.rb:9:in'build'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:185:in'index'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:179:in'resolve'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:114:in'specs'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/definition.rb:109:in'resolve_remotely!'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/installer.rb:83:in'run'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/installer.rb:14:in'install'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/cli.rb:247:in'install'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/thor/task.rb:27:in'run'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/thor/invocation.rb:120:in'invoke_task'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/thor.rb:344:in'dispatch'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/vendor/thor/base.rb:434:in'start'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
箱/捆:20:在“阻塞中”
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
lib/bundler/friendly\u errors.rb:4:in`with\u friendly\u errors'
来自C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.0/
箱子/包裹:20:in`'
来自C:/RailsInstaller/Ruby1.9.3/bin/bundle:23:在“装载”中
从C:/RailsInstaller/Ruby1.9.3/bin/bundle:23:in`'

我已经尝试了
bundle安装--system
bundle安装--path path/to_/proect

此错误表示您的证书不存在或无效。这是一个共同的问题


这里有一篇关于如何解决这个问题的综合文章:(包括如何在Windows上处理它)

这里有一个解决方法检查一下

证书验证失败时简单复制粘贴错误