Use at least TLS 1.2

This commit is contained in:
Adrien Ferrand 2020-04-01 21:40:46 +02:00
parent 814223beaf
commit fa89c7b240

View file

@ -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"