You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test I tried to get this file using curl binary - the error gave me the idea to use --insecure (-k):
sdass@xxxxxxx:~ > curl https://static.rust-lang.org/dist/channel-rust-nightly.toml.sha256
curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
sdass@xxxxxxx:~ > curl -kO https://static.rust-lang.org/dist/channel-rust-nightly.toml.sha256
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 92 0 92 0 0 72 0 --:--:-- 0:00:01 --:--:-- 115
sdass@xxxxxxx:~ > cat channel-rust-nightly.toml.sha256
af403537ce028561807aded09fb8b5e4fecffd54621ac7933df66aa73423e50c channel-rust-nightly.toml
Based on the curl man page, I set the -k quivalent long option in .curlrc:
sdass@xxxxxxx:~ > cat ~/.curlrc
insecure
This works when invoking the curl binary - I no longer had to specify the option:
However, rustup-init doesn't seem to honor ~/.curlrc and keeps returning the same error. Unfortunately I don't know of any way to pass these flags to libcurl(?) being used by rustup-init.
The text was updated successfully, but these errors were encountered:
The rustup backend is not documented to be curl, and will not always be curl. If there are features that are needed from .curlrc, please open issues on them specifically so they can be added to rustup directly.
Hi,
rustup-init is unable to fetch data from behind my proxy:
I've already set the http_proxy variable:
To test I tried to get this file using curl binary - the error gave me the idea to use --insecure (-k):
Based on the curl man page, I set the -k quivalent long option in .curlrc:
This works when invoking the curl binary - I no longer had to specify the option:
However, rustup-init doesn't seem to honor ~/.curlrc and keeps returning the same error. Unfortunately I don't know of any way to pass these flags to libcurl(?) being used by rustup-init.
The text was updated successfully, but these errors were encountered: