我正在尝试使用 Chef-solo 安装 Java,但遇到以下证书错误。我尝试了一些其他解决方案来下载证书并将它们放置在某些位置,但没有成功。如何去发现什么是错的?
sudo chef-solo -r https://github.com/opscode-cookbooks/java.git
/usr/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /usr/lib/ruby/1.8/net/http.rb:586:in `connect'
from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:542:in `start'
from /usr/lib/ruby/1.8/open-uri.rb:242:in `open_http'
from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
from /usr/lib64/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:178:in `reconfigure'
from /usr/lib64/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:177:in `open'
from /usr/lib64/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:177:in `reconfigure'
from /usr/lib64/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application.rb:68:in `run'
from /usr/lib64/ruby/gems/1.8/gems/chef-10.12.0/bin/chef-solo:25
from /usr/bin/chef-solo:19:in `load'
from /usr/bin/chef-solo:19