mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
Also re-arranges web content by using old content from lib/web into lib/webserver, while new lib/web contains the proxy configuration. Fixes #19
15 lines
463 B
PowerShell
15 lines
463 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Sets the allowed TLS version for communicating with endpoints to TLS 1.2 and 1.1
|
|
.DESCRIPTION
|
|
Sets the allowed TLS version for communicating with endpoints to TLS 1.2 and 1.1
|
|
.FUNCTIONALITY
|
|
Uses the [Net.ServicePointManager] to set the SecurityProtocol to TLS 1.2 and 1.1
|
|
.LINK
|
|
https://github.com/Icinga/icinga-powershell-framework
|
|
#>
|
|
|
|
function Set-IcingaTLSVersion()
|
|
{
|
|
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11";
|
|
}
|