mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
Use at least TLS 1.2
This commit is contained in:
parent
814223beaf
commit
fa89c7b240
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue