Я получаю эту ошибку, когда я генерирую новое приложение направляющих

Fetching source index from https://rubygems.org/
Retrying source fetch due to error (2/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for rubygems.
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/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying source fetch due to error (3/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for ruby gem.
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/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for rubygems.
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/ruby-ssl. To connect without
using SSL, edit your Gemfile sources and change 'https' to 'http'.
         run  bundle exec spring binstub --all

Я работал gem update --system, но это не работало. Я снизился с другой ошибкой:

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

Что продолжается здесь и как я могу зафиксировать его?Спасибо

0
задан 9 February 2017 в 20:02

2 ответа

Эта проблема обычно происходит со старыми версиями rubygem. Можно попытаться обновить его путем выполнения

gem update --system --source http://rubygems.org/

и после этого

gem update

источник .

1
ответ дан 7 November 2019 в 00:24

Создайте новый файл .gemrc в своем корневом каталоге и добавьте эту строку.

:ssl_verify_mode: 0

Теперь, это должно продолжиться, даже если это не может проверить, что соединению SSL "доверяют".

0
ответ дан 7 November 2019 в 00:24

Другие вопросы по тегам:

Похожие вопросы: