Remove explicit add of tls 1.2

This commit is contained in:
Adrien Ferrand 2020-04-02 01:58:36 +02:00
parent ea6ce639d2
commit ca1b9e42b8

View file

@ -7,9 +7,6 @@ process {
$logName = "CertbotAutoUpdate"
$eventID = 1
# Ensure to use TLS 1.2+ for HTTPS exchanges.
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
New-EventLog -Source $eventSource -LogName $logName -ErrorAction SilentlyContinue
function Write-Message($message, $level = "Information") {