标签: geminabox

ssl_verify_mode +捆绑器+ geminabox

我正在尝试建立一个私人的geminabox服务器来容纳我的项目正在开发的一些宝石。我已经设置了服务器,乘客nginx将geminabox作为机架应用程序运行。我无需使用SSL就可以捆绑指向服务器的安装。

由于裸HTTP流量从来都不是理想的,因此我也想添加SSL。为了获得概念验证的效果,我添加了SSL证书,并验证仍然可以看到已安装gem的geminabox前端。

当我回到我的ruby项目时,我运行捆绑安装并获得:

Could not verify the SSL certificate for https://********.com/.

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'.

通过链接,错误消息给了我,我决定首先添加〜/ .gemrc及其内容:

:ssl_verify_mode: 0

(不理想,也不是永久解决方案)。现在我得到:

Fetching source index from https://***.com/

Resolving dependencies...

Could not verify the SSL certificate for https://***.com/quick/Marshal.4.8/sqlite3-1.3.10-x86-mswin32-60.gemspec.rz. There is a chance you …

ruby ssl-certificate bundler gemfile geminabox

5
推荐指数
1
解决办法
1050
查看次数

标签 统计

bundler ×1

gemfile ×1

geminabox ×1

ruby ×1

ssl-certificate ×1