Response: Failed to authenticate as . Synchronize the clock on your host


We will learn how to solve the chef server, chef workstation and chef client issue. Most of the below issue or problem facing the IT gays and Administrator

1. First issue SSL in Chef Workstation  with Chef Server below with Log.
####################1!!!!!########################################
root@bhandari:/home/bhandari/Documents/chef-repo# knife node list
ERROR: SSL Validation failure connecting to host: chefserver.linuxhilinux.com - SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate)
ERROR: Could not establish a secure connection to the server.
Use `knife ssl check` to troubleshoot your SSL configuration.
If your Chef Server uses a self-signed certificate, you can use
`knife ssl fetch` to make knife trust the server's certificates.

Original Exception: OpenSSL::SSL::SSLError: SSL Error connecting to https://chefserver.linuxhilinux.com/organizations/surenderlinux/nodes - SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate)
root@bhandari:/home/bhandari/Documents/chef-repo# knife ssl fetch
WARNING: Certificates from chefserver.linuxhilinux.com will be fetched and placed in your trusted_cert
directory (/home/bhandari/Documents/chef-repo/.chef/trusted_certs).

Knife has no means to verify these are the correct certificates. You should
verify the authenticity of these certificates after downloading.

Adding certificate for chefserver_linuxhilinux_com in /home/bhandari/Documents/chef-repo/.chef/trusted_certs/chefserver_linuxhilinux_com.crt
root@bhandari:/home/bhandari/Documents/chef-repo# knife ssl check
Connecting to host chefserver.linuxhilinux.com:443
Successfully verified certificates from `chefserver.linuxhilinux.com'

################################################################################
root@bhandari:/home/bhandari/Documents/chef-repo# knife node list
ERROR: Failed to authenticate to https://chefserver.linuxhilinux.com/organizations/surenderlinux as surender with key /home/bhandari/Documents/chef-repo/.chef/surender.pem
Response:  Failed to authenticate as surender. Synchronize the clock on your host.

System reboot and also check the date and time in workstation as well as chef server. both are same date and time if not then please set the same the data and time.


Response: Failed to authenticate as . Synchronize the clock on your host Response:  Failed to authenticate as . Synchronize the clock on your host Reviewed by Unknown on September 07, 2018 Rating: 5

No comments:

Scribe

http://feeds.feedburner.com/LinuxAndAws
Powered by Blogger.
X

Get Updates On

Linux Tutorial

AWS Tutorial

Devops Tutorial

We are going to send you our resources for free. To collect your copy at first, join our mailing list. So don't miss any updates, stay connected!