SSL 验证失败 - knife ec2 with chef 12

标签 ssl amazon-ec2 chef-infra knife

尝试使用“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/

相关文章:

chef-infra - 调配时Chef-solo ssl警告

chef-infra - 无法在带有 Chef 客户端的本地模式下找到 Recipe

java - Java 中服务器端 SSL 的概念概述

java - SMTP STARTTLS : how to behave if remote SMTP server has self-signed certificate?

ssl - 如何在 MAMP Pro 中设置多个支持 https 的子域?

python - 使用客户端证书的自定义 urllib 开启器

mysql - 从远程服务器连接到 Amazon EC2 上的 mysql

mysql - java.lang.IllegalStateException : Attempting to execute an operation on a closed EntityManagerFactory 错误

amazon-ec2 - 亚马逊启动模板 - 更新的 AMI

基于 Elasticsearch 文件的索引模板未显示在 "/_template"API 调用中