Skip to content

Commit ea3cb09

Browse files
committed
Use TLSv1.3 with curl if specified at all
The curl option specified to use TLSv1.2 explicity while nowadays 1.3 is availalble and recommended. Switch to specifying 1.3 instead of 1.2 for the command that downloads the install script. The rustup-init.sh script itself it left with the ciphersuite selection plus 1.2 and fallbacks as is.
1 parent 3ced044 commit ea3cb09

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/src/installation/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ installation of `rustup` and then install `nightly` along with `clippy` or
4949
`miri`, first install `rustup` without a toolchain:
5050

5151
```console
52-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
52+
curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
5353
```
5454

5555
Next you can install `nightly` allowing `rustup` to downgrade until it finds

www/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div id="platform-instructions-unix" class="instructions display-none">
2929
<p>Run the following in your terminal, then follow the onscreen instructions.</p>
3030
<div class="copy-container">
31-
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
31+
<pre class="rustup-command">curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh</pre>
3232
<button id="copy-button-unix" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
3333
<div class="copy-icon">
3434
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
@@ -49,7 +49,7 @@
4949
</p>
5050
<p>If you're a Windows Subsystem for Linux user run the following in your terminal, then follow the onscreen instructions to install Rust.</p>
5151
<div class="copy-container">
52-
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
52+
<pre class="rustup-command">curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh</pre>
5353
<button id="copy-button-win32" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
5454
<div class="copy-icon">
5555
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
@@ -70,7 +70,7 @@
7070
</p>
7171
<p>If you're a Windows Subsystem for Linux user run the following in your terminal, then follow the onscreen instructions to install Rust.</p>
7272
<div class="copy-container">
73-
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
73+
<pre class="rustup-command">curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh</pre>
7474
<button id="copy-button-win64" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
7575
<div class="copy-icon">
7676
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
@@ -104,7 +104,7 @@
104104
<div>
105105
<p>If you are running Unix,<br/>run the following in your terminal, then follow the onscreen instructions.</p>
106106
<div class="copy-container">
107-
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
107+
<pre class="rustup-command">curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh</pre>
108108
<button id="copy-button-unknown" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
109109
<div class="copy-icon">
110110
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
@@ -143,7 +143,7 @@
143143
<p>To install Rust, if you are running Unix,<br/>run the following
144144
in your terminal, then follow the onscreen instructions.</p>
145145
<div class="copy-container">
146-
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
146+
<pre class="rustup-command">curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh</pre>
147147
<button id="copy-button-default" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
148148
<div class="copy-icon">
149149
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">

www/rustup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var platforms = ["default", "unknown", "win32", "win64", "unix"];
44
var platform_override = null;
5-
var rustup_install_command = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh";
5+
var rustup_install_command = "curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh";
66

77
function detect_platform() {
88
"use strict";

0 commit comments

Comments
 (0)