3

我正在尝试librarian-chef在 Windows 提示符下安装说明书。我已经使用gem install librarian-chef. 但是我收到此错误:

C:\Users\crmpicco\Documents\vagrant-chef-deploy>librarian-chef install
DL is deprecated, please use Fiddle
Installing iptables (0.14.0)
C:/Ruby200-x64/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 (Ope
nSSL::SSL::SSLError)
        from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'

        from C:/Ruby200-x64/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
        from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in `connect'
        from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
        from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:851:in `start'

这是我配置的问题吗?

我的厨师档案:

#!/usr/bin/env ruby
#^syntax detection

site 'https://supermarket.getchef.com/api/v1'

# cookbook 'chef-client'

# cookbook 'apache2', '>= 1.0.0'

# cookbook 'rvm',
#   :git => 'https://github.com/fnichol/chef-rvm'

# cookbook 'postgresql',
#   :git => 'https://github.com/findsyou/cookbooks',
#   :ref => 'postgresql-improvements'


# Community cookbooks
#cookbook "apache2"
cookbook 'apache2', '~> 2.0.0'
cookbook "php"
#cookbook "yum"
#cookbook "ant"
cookbook "apt"
cookbook 'mysql', '~> 5.5.2'
cookbook "database"
cookbook "ssh_known_hosts"
cookbook "composer"
cookbook 'git', '~> 4.0.2'
cookbook 'varnish', '~> 0.9.18'
cookbook 'selinux', '~> 0.8.0'
cookbook 'hostsfile',
  :git => 'https://github.com/customink-webops/hostsfile'



cookbook "selenium", :git => 'https://github.com/kohkimakimoto/chef-cookbooks-selenium'
4

2 回答 2

4

是的,该站点正在使用不受信任的 HTTPS 证书,并且图书管理员拒绝连接到它是在做正确的事情。这可能是因为您需要更新您的根信任数据库。通常,使用 Ruby 执行此操作的最简单方法是下载cURL CA 包,然后将环境变量设置SSL_CERT_FILE为指向您下载它的路径。我的 windows-fu 生锈了,但这应该会给你一个更新的 CA 列表。

于 2014-09-25T18:32:17.893 回答
0

作为 coderanger 答案的扩展,根据我的经验,您可能必须使用较旧的 CA 包。可以在此处找到解释(和较旧的证书) 。 但是,您应该意识到这样做的安全隐患。

大约在 2014 年 9 月上旬,Mozilla 从其 CA 捆绑包中的证书中删除了信任位,这些证书仍在使用 RSA 1024 位密钥。这可能会导致 TLS 库很难验证某些站点,如果有问题的库不能正确支持 RFC 4158 中的“路径发现”。(包括 OpenSSL 和 GnuTLS。)

于 2015-03-09T13:16:30.877 回答