1

Ruby 2.0 と Rails 4.0 で RailsInstaller を使用しています。私はこれでアプリを作成します:

$ rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb

それから私はこれを得ました:

apply  https://raw.github.com/RailsApps/rails-composer/master/composer.rb
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/net/http.rb:918:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/net/http.rb:918:in `connect'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/net/http.rb:851:in `start'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/open-uri.rb:313:in `open_http'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/open-uri.rb:708:in `buffer_open'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/open-uri.rb:688:in `open'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/open-uri.rb:34:in `open'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:216:in `apply'

これは何ですか?どうもありがとう!

4

1 に答える 1

3

ここから cacert.pem ファイルをダウンロードします。このファイルを C:\RailsInstaller\cacert.pem に保存します。

SSL_CERT_FILE を設定して、Ruby に認証局バンドルを認識させます。現在のコマンド プロンプト セッションでこれを設定するには、次のように入力します。

  $  set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem

それで全部です。正常に動作します!

于 2013-10-17T15:01:57.260 に答える