【发布时间】:2026-01-07 03:10:01
【问题描述】:
尝试使用“knife ec2”和 bootstrap-version 12 创建 AWS 服务器,但 SSL 验证失败。
'连接到主机的 SSL 验证失败'
似乎一个解决方案是运行“knife ssl fetch”来获取服务器 ssl 证书,但我无法确切知道如何或何时运行它
(所有其他设置似乎都正常,创建了 EC2 实例,ssh 工作,下载了 chef 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
【问题讨论】:
-
请包含错误。与 Chef 服务器或 AWS 通信是否失败?
标签: ssl amazon-ec2 chef-infra knife