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:
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.