SE
PowerCLI 를 사용하여 vCenter 접속
POTATOH
2020. 7. 8. 19:33
Connect-VIServer 명령으로 그냥 접속할라 치면 아래와 같은 에러가 발생함.
Connect-VIServer : 2020-07-08 19:28:44 Connect-VIServer Error: Invalid server certificate. Use Set-PowerCLIConfigurati
on to set the value for the InvalidCertificateAction option to Prompt if you'd like to connect once or to add a permane
nt exception for this server.
Additional Information: 'xx.xxx.xxx.xxx' 권한을 지닌 SSL/TLS 보안 채널에 대해 트러스트 관계를 설정할 수 없습니다.
위치 줄:1 문자:1
+ Connect-VIServer
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : 보안 오류: (:) [Connect-VIServer], ViSecurityNegotiationException
+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_CertificateError,VMware.VimAutomation.ViCore.
Cmdlets.Commands.ConnectVIServer
Set-PowerCLIConfiguration 명령으로 인증서 무시할수 있도록 설정 변경
PS C:\WINDOWS\system32> Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
Scope ProxyPolicy DefaultVIServerMode InvalidCertificateAction DisplayDeprecationWarnings WebOperationTimeout
Seconds
----- ----------- ------------------- ------------------------ -------------------------- -------------------
Session UseSystemProxy Multiple Ignore True 300
User Ignore
AllUsers
다시 접속하면 잘 된다.
Connect-VIServer -Server [vCenter_IP] -User [USERNAME] -Password [PASSWORD]