From c8c6d48ee44026d3d610bc578f7833e63a6299d7 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 21 Jul 2021 22:35:39 +0200 Subject: [PATCH] Add Set-netboxCipherSSL for enable TLS1.1 and TLS1.2 (for PS 5.0) From PowerAruba/FortiPower Module :) --- Functions/Setup/Set-NetboxCipherSSL.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Functions/Setup/Set-NetboxCipherSSL.ps1 diff --git a/Functions/Setup/Set-NetboxCipherSSL.ps1 b/Functions/Setup/Set-NetboxCipherSSL.ps1 new file mode 100644 index 0000000..bad4402 --- /dev/null +++ b/Functions/Setup/Set-NetboxCipherSSL.ps1 @@ -0,0 +1,8 @@ +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 + +} \ No newline at end of file