Skip to content

Commit ab81ee3

Browse files
authored
Merge pull request #3385 from yerke/yerke/update-install-methods-tlsv1.2
Update installation methods to use TLS v1.2
2 parents 843459f + 6ab4ffc commit ab81ee3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/installation/other.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ by platform:
1111
toolchains by default this can be modified at install time, either
1212
interactively, with the `--default-host` flag, or after installation
1313
via `rustup set default-host`.
14-
* On Unix, run `curl https://sh.rustup.rs -sSf | sh` in your shell. This
14+
* On Unix, run `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` in your shell. This
1515
downloads and runs [`rustup-init.sh`], which in turn downloads and runs the
1616
correct version of the `rustup-init` executable for your platform.
1717

@@ -22,11 +22,11 @@ by platform:
2222
Some examples:
2323

2424
```console
25-
$ curl https://sh.rustup.rs -sSf | sh -s -- --help
26-
$ curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path
27-
$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
28-
$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none
29-
$ curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain nightly
25+
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --help
26+
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path
27+
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly
28+
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none
29+
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain nightly
3030
```
3131

3232
If you prefer you can directly download `rustup-init` for the platform of your

0 commit comments

Comments
 (0)