尝试使用'刀ec2'创建一个aws服务器。和bootstrap-version 12但未通过SSL验证。
' SSL验证失败,连接到主机'
似乎一个解决方案就是运行“刀具取出”'获取服务器ssl证书,但我无法确切地知道如何或何时运行此
(所有其他设置似乎没问题,创建EC2实例,ssh工作,下载厨师12,错误是使用验证器密钥创建新客户端身份)
10.x.x.x Starting Chef Client, version 12.0.3
10.x.x.x Creating a new client identity for test_create using the validator key.
10.x.x.x [2015-01-21T18:22:48+00:00] ERROR: SSL Validation failure connecting to host: chef.xxxx - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
10.x.x.x
10.x.x.x ================================================================================
10.x.x.x Chef encountered an error attempting to create the client "test_create"
10.x.x.x ================================================================================
10.x.x.x
答案 0 :(得分:1)
只需运行'knife ssl fetch'....
答案 1 :(得分:0)
正如您所说,您使用knife ssl
来解决此问题。有关该流程的更详细演练,请参阅https://www.chef.io/blog/2013/10/31/ssl-certificate-validation-in-chef/。