NetboxPS/Functions/Setup/Set-NetboxCipherSSL.ps1
Alexis La Goutte c8c6d48ee4 Add Set-netboxCipherSSL for enable TLS1.1 and TLS1.2 (for PS 5.0)
From PowerAruba/FortiPower Module :)
2021-07-21 23:06:17 +02:00

8 lines
No EOL
388 B
PowerShell

Function Set-NetboxCipherSSL {
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseShouldProcessforStateChangingFunctions", "")]
Param( )
# Hack for allowing TLS 1.1 and TLS 1.2 (by default it is only SSL3 and TLS (1.0))
$AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
}