Registering chef client manually to chef server getting SSL error


#1

Hi,

I am trying to register chef client with chef server manually. I am able to successfully communicate with the server when I use ssl_verify_mode :verify_none in client.rb file. But when I try to register the client with SSL enabled, I get the following error message:
Unexpected Error:

OpenSSL::SSL::SSLError: SSL Error connecting to https://chefserver/organizations/org/nodes/node1 - SSL_connect returned=1 errno=0 state=error: certificate verify failed

I tried copying the .crt from chef server to the client node at /home/user/.chef/trusted_certs/server.crt but no luck.
Where does chef client expects the certificate and Do I need to import is with some specific command.

Thanks,
Suman


#2

I have the same issue, I am trying to use CentOS Kickstart /PXE and install chef-client from the kickstart and boostrap it from the nodeā€¦