尝试使用“knife ec2”和 bootstrap-version 12 创建 aws 服务器,但 SSL 验证失败。
'连接到主机的 SSL 验证失败'
似乎一个解决方案是运行“knife ssl fetch”来获取服务器 ssl 证书,但我不知道如何或何时运行它
(所有其他设置似乎都正常,创建了 EC2 实例,ssh 工作,下载了 chef 12,使用验证器 key 创建新客户端身份时出错)
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
最佳答案
只需运行“knife ssl fetch”....
关于SSL 验证失败 - knife ec2 with chef 12,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28074637/