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

使用「VMware vSphere PowerCLI」鏈接vCenter Server,該主機加入到 域內,而且使用 默認 證書,執行「html

Connect-Viserver <team_vCenter_Server_system_FQDN>」 見出現以下警告!ide


1:57:08 AM Connecting to VI Serverspa

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


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

certificate which isn't trusted by the trust provider.ip


Certificate: [Subject]get

E=support@vmware.com, CN=foo.example.com, OU="VMware, Inc.", O="VMware, Inc."it


[Issuer]io

E=support@vmware.com, CN=foo.example.com, OU="VMware, Inc.", O="VMware, Inc."class


[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

相關文章
相關標籤/搜索