在尝试引导新服务器时:
Chef-Workstation:~ # knife bootstrap SERVER -N SERVER -E PROJECTNAMEHERE -x USERNAMEHERE-A --sudo --verbose
Connecting to SERVER
SERVER Starting first Chef Client run...
SERVER Starting Chef Client, version 12.19.36
SERVER Creating a new client identity for SERVER using the validator key.
SERVER [2019-04-01T14:52:54+00:00] ERROR: SSL Validation failure connecting to host: Chef-Server - SSL_connect returned=1 errno=0 state=error: certificate verify failed
SERVER
SERVER ================================================================================
SERVER Chef encountered an error attempting to create the client "SERVER"
SERVER ================================================================================
SERVER
SERVER Platform:
SERVER ---------
SERVER x86_64-linux-gnu
SERVER
SERVER
SERVER Running handlers:
SERVER [2019-04-01T14:52:54+00:00] ERROR: Running exception handlers
SERVER Running handlers complete
SERVER [2019-04-01T14:52:54+00:00] ERROR: Exception handlers complete
SERVER Chef Client failed. 0 resources updated in 03 seconds
SERVER [2019-04-01T14:52:54+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
SERVER [2019-04-01T14:52:54+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
SERVER [2019-04-01T14:52:54+00:00] ERROR: SSL Error connecting to https://Chef-Server/clients - SSL_connect returned=1 errno=0 state=error: certificate verify failed
SERVER [2019-04-01T14:52:54+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef-Workstation:~ # 但我已经有了:
grep -i ssl .chef/knife.rb
ssl_verify_mode :verify_none还包括:
openssl s_client -showcerts -connect "Chef-Server:443" < /dev/null 2>/dev/null | sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p' | tee -a /opt/chef/embedded/ssl/certs/cacert.pem我认为这是一个软件错误,或者我还遗漏了什么?
问题:为什么刀给SSL问题,而我在配置文件中说,不麻烦有效的SSL证书?
发布于 2019-04-04 16:26:40
把我需要注册的节点上的主厨-客户版本从12降到11。
https://stackoverflow.com/questions/55458898
复制相似问题