4

私はこれまでこれを見たことがありません、そしてこの正確なメッセージの単純なグーグル検索は何も見つかりません。スタックオーバーフローは

run  bundle install
Fetching source index from https://rubygems.org/
Resolving dependencies...
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your   system doesn't have the CA certificates needed for verification. For information about OpenSSL   certificates, see
bit.ly/ssl-certs. To connect without using SSL, edit your Gemfile sources and change 'https'   to 'http'.

私はこのページの指示に従い、手ぶらで出てきました:

http://www.beginnerruby.com/rails-troubleshooting/fixing-opensslbundler-issue-for-rails-on-debian/

誰かアイデアはありますか?

RubyMineを使用するMacOSXLion。

4

5 に答える 5

4

私はこれらの指示に従いましたが、明らかな結果はありませんでした。誰かがターミナルが再開されたかどうか尋ねたコメントを読んで。そこで、ターミナルを開閉しました。それで私の問題は解決しました。SnowLeopardを使用しています。

$ brew update
$ brew install openssl
$ brew link openssl --force
$ brew install curl-ca-bundle
$ brew tap raggi/ale
$ brew install openssl-osx-ca
于 2013-03-06T17:46:58.113 に答える
3

例外の解釈は簡単なはずだと思います(私は間違っているかもしれませんが)Gemfileの上部にあるsource'https://rubygems.org'をsource'http://rubygems.org'に変更ます。

于 2013-03-06T06:51:01.787 に答える
1

を使用していることを確認してくださいrvm

まず、OpenSSLrvmパッケージをインストールします。

rvm pkg install openssl

次に、このパッケージを指すルビーバージョン(私の場合は2.0.0p247)を再インストールします。

rvm reinstall 2.0.0-p247 --with-openssl-dir=$HOME/.rvm/usr

現在のプロジェクトフォルダを離れて、もう一度入力します。

cd .

今、あなたは実行することができますbundle install

bundle install
于 2013-10-16T19:12:35.447 に答える
0

私はここで機能した指示に従いました:http://gistflow.com/posts/916-fix-mac-os-x-rubygems-ssl-problem

于 2013-11-08T01:12:59.950 に答える
0

他の誰かが同様の問題を抱えている場合:

実行することによって:

sudo rvm osx-ssl-certs status all

おそらく、証明書が古くなっていることがわかります。次のようになります。

Certificates for /System/Library/OpenSSL/cert.pem: Old.

更新する必要があるので、これを実行します。

sudo rvm osx-ssl-certs update all

statusコマンドを再度実行すると、次のようになります。

Certificates for /System/Library/OpenSSL/cert.pem: Up to date.

幸せな日々、問題は修正されました。

于 2013-11-18T21:13:58.297 に答える