From fa89c7b24035f735cdd8847f121264fd0b64cebe Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 1 Apr 2020 21:40:46 +0200 Subject: [PATCH] Use at least TLS 1.2 --- windows-installer/auto-update.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows-installer/auto-update.ps1 b/windows-installer/auto-update.ps1 index fbac0f059..7068265ec 100644 --- a/windows-installer/auto-update.ps1 +++ b/windows-installer/auto-update.ps1 @@ -63,7 +63,7 @@ Assuming Certbot is not up-to-date. # Get latest remote certbot version try { - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 $result = Invoke-RestMethod -Uri $certbotUpgradeApiURL $latestVersion = $result.tag_name -replace '^v(\d+\.\d+\.\d+).*$', '$1' $latestVersion = [System.Version]"$latestVersion"