diff --git a/rustup-init.sh b/rustup-init.sh index 0df9fc3f84..67db937396 100755 --- a/rustup-init.sh +++ b/rustup-init.sh @@ -376,9 +376,9 @@ downloader() { if [ "$1" = --check ]; then need_cmd "$_dld" elif [ "$_dld" = curl ]; then - curl -sSfL "$1" -o "$2" + curl --proto =https --tlsv1.2 --silent --show-error --fail --location "$1" --output "$2" elif [ "$_dld" = wget ]; then - wget "$1" -O "$2" + wget --https-only --secure-protocol=TLSv1_2 "$1" -O "$2" else err "Unknown downloader" # should not reach here fi diff --git a/www/index.html b/www/index.html index d9372df965..536b826496 100644 --- a/www/index.html +++ b/www/index.html @@ -36,7 +36,7 @@ then follow the onscreen instructions.

If you're a Windows Subsystem for Linux user run the following in your terminal, then follow the onscreen instructions to install Rust.

-
curl https://sh.rustup.rs -sSf | sh
+
curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | sh

You appear to be running Windows 32-bit. If not, display all supported installers.