Skip to content

Commit b26102b

Browse files
committed
Use TSL 1.2 for GitHub
1 parent 567f321 commit b26102b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

en/AutoInstall.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Internet connection is required.
4242
Just copy the following command, press `Win+R`, paste command and press `Enter`.
4343

4444
~~~
45-
powershell -NoProfile -ExecutionPolicy Unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install.ps1'))"
45+
powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install.ps1'))"
4646
~~~
4747

4848

@@ -67,7 +67,7 @@ Paste the command (see example below) to your box startup script
6767
(cmd-file for example) and change arguments to desired values.
6868

6969
~~~
70-
powershell -NoProfile -ExecutionPolicy Unrestricted -Command "set ver 'alpha'; set dst 'C:\ConEmu'; set lnk $TRUE; set run $TRUE; set xml 'https://conemu.github.io/ConEmu.xml'; iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install2.ps1'))"
70+
powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; set ver 'alpha'; set dst 'C:\ConEmu'; set lnk $TRUE; set run $TRUE; set xml 'https://conemu.github.io/ConEmu.xml'; iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install2.ps1'))"
7171
~~~
7272

7373

install.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================
22
#
3-
# Copyright 2014 [email protected]
3+
# Copyright 2018 [email protected]
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -21,4 +21,6 @@ $xml = ""
2121
$lnk = $TRUE
2222
$run = $FALSE
2323

24+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
25+
2426
iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install2.ps1'))

install2.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================
22
#
3-
# Copyright 2014 [email protected]
3+
# Copyright 2018 [email protected]
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -105,6 +105,8 @@ function GetDownloadUrl([string]$data,[string]$section)
105105
# Main cycle
106106
try {
107107

108+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
109+
108110
# retrieve url of the latest version
109111
Write-Host "Download latest version information"
110112
$ver_ini = DownloadString $url_ver

ru/AutoInstall.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ otherlang:
4141
Просто выполните следующую команду в диалоге `Win+R`.
4242

4343
~~~
44-
powershell -NoProfile -ExecutionPolicy Unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install.ps1'))"
44+
powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install.ps1'))"
4545
~~~
4646

4747

@@ -66,7 +66,7 @@ powershell -NoProfile -ExecutionPolicy Unrestricted -Command "iex ((new-object n
6666
(cmd-file например) и измените требуемые значения.
6767

6868
~~~
69-
powershell -NoProfile -ExecutionPolicy Unrestricted -Command "set ver 'alpha'; set dst 'C:\ConEmu'; set lnk $TRUE; set run $TRUE; set xml 'https://conemu.github.io/ConEmu.xml'; iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install2.ps1'))"
69+
powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; set ver 'alpha'; set dst 'C:\ConEmu'; set lnk $TRUE; set run $TRUE; set xml 'https://conemu.github.io/ConEmu.xml'; iex ((new-object net.webclient).DownloadString('https://conemu.github.io/install2.ps1'))"
7070
~~~
7171

7272

0 commit comments

Comments
 (0)