본문 바로가기
Tech/VMware

Powershell powercli vcenter 연결 ssl/tls 문제

by 트리시스 2025. 3. 20.
반응형


1. 기본적인 vCenter 연결 명령어

Connect-VIServer -Server vcenter.domain.com -User admin -Password 'yourpassword'

이때, SSL/TLS 인증 문제로 연결이 실패할 수 있습니다.



2. SSL/TLS 인증 문제 해결 방법

PowerCLI에서는 기본적으로 Self-Signed 인증서를 거부하기 때문에, SSL/TLS 검증을 비활성화해야 할 수 있습니다.

방법 1: 기본 설정 변경 (추천)

PowerCLI에서 SSL 인증서 검사를 비활성화하려면 다음 명령어를 실행합니다.

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false

이후 다시 연결을 시도하세요.

Connect-VIServer -Server vcenter.domain.com -User admin -Password 'yourpassword'

방법 2: TLS 버전 강제 설정

PowerShell 세션에서 TLS 1.2를 강제로 활성화하는 방법입니다.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

이후 다시 Connect-VIServer 명령어를 실행하면 됩니다

3. 해결되지 않는다면?

1. PowerCLI 버전 확인
최신 버전이 아니라면 업데이트하세요.

Get-Module -Name VMware.PowerCLI -ListAvailable

최신 버전이 아니라면 업데이트:

Update-Module -Name VMware.PowerCLI

2. vCenter 주소 확인
https://vcenter.domain.com을 브라우저에서 접속하여 인증서 오류가 있는지 확인하세요.
• IP 주소 대신 FQDN을 사용하면 해결되는 경우도 있음.
3. 방화벽 및 네트워크 확인
• vCenter 443 포트가 열려 있는지 확인 (Test-NetConnection vcenter.domain.com -Port 443)
• VPN이나 프록시 환경에서 접속이 막혀 있는지 확인



결론
1. SSL/TLS 오류가 발생하면 우선 Set-PowerCLIConfiguration -InvalidCertificateAction Ignore 설정 적용
2. TLS 1.2 활성화 ([Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12)
3. 그래도 해결되지 않으면 PowerCLI 업데이트 후 재시도

반응형

댓글