mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
8 lines
No EOL
388 B
PowerShell
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
|
|
|
|
} |