Error/Powershell

not create SSL/TLS secure

fxploit 2022. 6. 16. 15:41

Powershell SSL/TLS 관련 문제해결

 

#not create SSL/TLS secure 

#exception calling "downloadstring" with "1" argument the request was aborted could not create ssl/tls secure channel

 

 

TLS1.2 지원여부

[Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'

 

TLS1.2 활성화 적용

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

 

TLS1.2 활성화 확인

[System.Net.ServicePointManager]::SecurityProtocol.HasFlag([Net.SecurityProtocolType]::Tls12)