PowerCLI: “WARNING: There were one or more problems with the server certificate”

使用“VMware vSphere PowerCLI”连接vCenter Server,该主机加入到 域内,并且使用 默认 证书,执行“

Connect-Viserver <team_vCenter_Server_system_FQDN>” 见出现如下警告!


1:57:08 AM Connecting to VI Server

WARNING: There were one or more problems with the server certificate:


* A certification chain processed correctly, but terminated in a root

certificate which isn't trusted by the trust provider.


Certificate: [Subject]

[email protected], CN=foo.example.com, OU="VMware, Inc.", O="VMware, Inc."


[Issuer]

[email protected], CN=foo.example.com, OU="VMware, Inc.", O="VMware, Inc."


[Serial Number]

C49018FF


[Not Before]

5/18/2012 9:20:09 AM


[Not After]

5/16/2022 9:20:09 AM


[Thumbprint]

AAA9E2D164E7258D0BF2841173AE46034C097FFF


The server certificate is not valid.


WARNING: THE DEFAULT BEHAVIOR UPON INVALID SERVER CERTIFICATE WILL CHANGE IN A

FUTURE RELEASE. To ensure scripts are not affected by the change, use

Set-PowerCLIConfiguration to set a value for the InvalidCertificateAction

option.



这是因为新版的VMware vSphere PowerCLI 对使用默认SSL的限制。


解决办法:使用管理员权限运行“PowerCLI”,如果是WIN2008/7/8/2012,右键使用管理员运行


执行 set-PowerCLIConfiguration -invalidCertificateAction "ignore" -confirm:$false


http://www.vmware.com/support/developer/PowerCLI/PowerCLI51/html/Set-PowerCLIConfiguration.html

你可能感兴趣的:(server,证书,chain,主机,problems)