0

我的顶级 Chef 存储库目录中有以下 Berksfile。

source "https://www.mySVNrepo.com/repos/myproject/trunk"

cookbook 'helloworld',      '= 0.1.0'

当我进行 berks 安装时,我得到

[root@chef trunk]# berks install
Resolving cookbook dependencies...
Fetching cookbook index from https://www.mySVNrepo/repos/myproject/trunk...
/opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:800:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError)
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:800:in `block in connect'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:800:in `connect'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:745:in `start'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:1285:in `request'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:1027:in `get'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:78:in `perform_request'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:39:in `call'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in `call'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:139:in `build_response'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in `run_request'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/connection.rb:140:in `get'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/berkshelf-api-client-1.2.0/lib/berkshelf/api_client/connection.rb:62:in `universe'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/berkshelf-3.1.4/lib/berkshelf/source.rb:22:in `build_universe'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/berkshelf-3.1.4/lib/berkshelf/installer.rb:21:in `block (2 levels) in build_universe'

如何告诉 Berkshelf 使用某个用户/密码来访问我的 SVN 存储库?它甚至支持吗?

4

1 回答 1

0

您的 HTTPS 证书无法验证。您可以告诉 Berkshelf 不要通过验证证书--no-ssl-verify或修复您的证书。推荐后者。

于 2014-09-25T20:25:21.200 回答