I'm following the instructions from the website listed below to connect to a vSphere server.
https://www.altaro.com/vmware/vmware-powercli-guide/
Connect-VIServer -Server vsphere.company.com
However, after entering the root username and password the following error message displays:
Error: Invalid server certificate. Use
Set-PowerCLIConfiguration to set the value for the InvalidCertificateAction option to Prompt if you'd like to connect
once or to add a permanent exception for this server.
Additional Information: Could not establish trust relationship for the SSL/TLS secure channel with authority
At line:1 char:1
What is the process to remedy this issue so I will be able to log on to the vSphere server using PowerCLI?
Error screenshot:
Thank you for your feedback.
I'm in the process of getting a certificate for our organization's vSphere.