rust-lang-deprecated/rustup.sh

ERROR: certificate common name “*.rust-lang.org” doesn’t match requested host name “sh.rustup.rs”

sonots opened this issue · 0 comments

I am not sure where I should report this, but

The Book https://doc.rust-lang.org/book/getting-started.html#installing-rust says to install rust as:

curl https://sh.rustup.rs -sSf | sh

But, sh.rustup.rs has wrong ssl certificate as:

$ wget https://sh.rustup.rs
--2017-05-25 14:38:34--  https://sh.rustup.rs/
Resolving sh.rustup.rs... 54.215.0.2
Connecting to sh.rustup.rs|54.215.0.2|:443... connected.
ERROR: certificate common name “*.rust-lang.org” doesn’t match requested host name “sh.rustup.rs”.
To connect to sh.rustup.rs insecurely, use ‘--no-check-certificate’.

or

$ openssl s_client -connect sh.rustup.rs:443 -showcerts
...
---
Server certificate
subject=/OU=Domain Control Validated/OU=EssentialSSL Wildcard/CN=*.rust-lang.org
issuer=/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secure Server CA
---
No client certificate CA names sent
Server Temp Key: ECDH, prime256v1, 256 bits
---
SSL handshake has read 4999 bytes and written 375 bytes