0

我在 Gemfile 中添加了引导 gem,当我尝试运行bundle install时。它显示以下错误!

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Nir>cd c:\Sites\FrogBlog

c:\Sites\FrogBlog>bundle install

Fetching source index from https://rails-assets.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError C
ould not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most like
ly your system doesn't have the CA certificates needed for verification. For inf
ormation about OpenSSL certificates, see [...]

c:\Sites\FrogBlog>
4

1 回答 1

1

这是 Windows 上 railsinstaler 的问题,您可以使用以下步骤修复它!

https://gist.github.com/fnichol/867550


已编辑


下载:

cacert.pem

curl.haxx.se/ca/cacert.pem

将该文件保存到 !

C:\Path_to_RailsInstaller_directory\cacert.pem

或者

D:Path_to_RailsInstaller_directory\cacert.pem

现在通过设置 SSL_CERT_FILE 让 ruby​​ 知道你的证书授权包。

要在当前command prompt session运行中将其设置为Administrator,请键入:

设置 SSL_CERT_FILE=C:\Path_to_RailsInstaller_directory\cacert.pem

于 2016-10-19T17:49:30.097 回答