This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vmware:powercli_ignore_invalid_certificate [2019/02/25 13:57] admin |
vmware:powercli_ignore_invalid_certificate [2019/02/25 14:08] (current) admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
When trying to connect with PowerCLI to a vCenter Server Appliance the following error occurred: | When trying to connect with PowerCLI to a vCenter Server Appliance the following error occurred: | ||
- | {{ :vmware:powercli1.png |}} | + | {{ :vmware:powercli1.png?direct&800|}} |
- | <code bash> | + | |
- | Connect-vIServer : 18-7-2018 13:20:10 Connect-VIServer 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. | + | //Connect-vIServer : 18-7-2018 13:20:10 Connect-VIServer 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.// |
- | </code> | + | |
As stated in the error, the Set-PowerCLIConfiguration command can be used to ignore the certificate check using the following syntax: | As stated in the error, the Set-PowerCLIConfiguration command can be used to ignore the certificate check using the following syntax: | ||
Line 15: | Line 15: | ||
After this command you’re able to connect to the vCenter without the certificate error. | After this command you’re able to connect to the vCenter without the certificate error. | ||
- | {{ :vmware:powercli2.png |}} | + | {{ :vmware:powercli2.png?direct&800 |}} |