Use the Credential
Store
Your vCLI
installation includes a credential store. You can establish trust for a user
with the credential store.
You can manage the credential
store with the
credstore-admin
utility application, which is located in the
/Perl/apps/general
directory inside the VMware vSphere CLI directory.
Updating the credential store is a two-step process. First you
add the user and password for the server, and then you add the thumbprint for
the server.
- Add the user and password for the target host to the local credential store.credstore_admin.pl add --server <esxi_HOSTNAME_OR_IP> --username <user> --password <pwd>
- Add the thumbprint for the target host. This thumbprint was returned in the error when you attempted to connect to the host.credstore_admin.pl add --server <esxi_HOSTNAME_OR_IP> --thumbprint <thumbprint>
- If you are using a non-default credential store file, you must pass it in with the--credstoreoption.If you do not use the--credstoreoption, the host becomes accessible without authentication.