SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

rails newしたら、エラー。。。。

[matsu@Yukis-MacBook-Pro ~]% rails new cancantest
      create  
      create  README.rdoc
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/assets/images/rails.png
      create  app/assets/javascripts/application.js
      create  app/assets/stylesheets/application.css
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/views/layouts/application.html.erb
      create  app/mailers/.gitkeep
      create  app/models/.gitkeep
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/secret_token.rb
      create  config/initializers/session_store.rb
      create  config/initializers/wrap_parameters.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  doc
      create  doc/README_FOR_APP
      create  lib
      create  lib/tasks
      create  lib/tasks/.gitkeep
      create  lib/assets
      create  lib/assets/.gitkeep
      create  log
      create  log/.gitkeep
      create  public
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/favicon.ico
      create  public/index.html
      create  public/robots.txt
      create  script
      create  script/rails
      create  test/fixtures
      create  test/fixtures/.gitkeep
      create  test/functional
      create  test/functional/.gitkeep
      create  test/integration
      create  test/integration/.gitkeep
      create  test/unit
      create  test/unit/.gitkeep
      create  test/performance/browsing_test.rb
      create  test/test_helper.rb
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor/assets/javascripts
      create  vendor/assets/javascripts/.gitkeep
      create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.gitkeep
      create  vendor/plugins
      create  vendor/plugins/.gitkeep
         run  bundle install
/Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in `block in connect'
    from /Users/matsu/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
    from /Users/matsu/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in `connect'
    from /Users/matsu/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
    from /Users/matsu/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/http.rb:750:in `start'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:628:in `start'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:570:in `connection_for'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:930:in `request'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/fetcher.rb:195:in `fetch'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/fetcher.rb:169:in `use_api'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `block in remote_specs'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `select'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `remote_specs'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:162:in `fetch_specs'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:66:in `specs'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/definition.rb:192:in `block (2 levels) in index'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/definition.rb:189:in `each'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/definition.rb:189:in `block in index'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/index.rb:9:in `build'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/definition.rb:185:in `index'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/definition.rb:179:in `resolve'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/definition.rb:114:in `specs'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/definition.rb:109:in `resolve_remotely!'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/installer.rb:83:in `run'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/installer.rb:14:in `install'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/cli.rb:247:in `install'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/thor/task.rb:27:in `run'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/thor.rb:344:in `dispatch'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/vendor/thor/base.rb:434:in `start'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/bin/bundle:20:in `block in <main>'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
    from /Users/matsu/.rvm/gems/ruby-1.9.3-p327/gems/bundler-1.3.0/bin/bundle:20:in `</main><main>'
        Unfortunately, a fatal error has occurred. Please see the Bundler
        troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!

SSL証明書がよくないようです。

% wget http://curl.haxx.se/ca/cacert.pem
% export SSL_CERT_FILE=~/cacert.pem

ほんと、railsの環境をメンテナンスするの大変。


matsubokkuri

マインディアにてCTOをしています。

あわせて読みたい

コメントを残す