Hi. I use linux subsystem for windows(WSL) - ubuntu 18.04
cargo build
error: failed to download from `https://crates.io/api/v1/crates/rand/0.3.23/download`
Caused by:
[60] Peer certificate cannot be authenticated with given CA certificates (server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none)
Error [60] defined in curl
When specifying the -k option in the file ~/.curl, the curl works.
How to specify options for cargo?
If you're on a network which intentionally intercepts TLS (some companies do that to monitor their employees, some questionable antivirus programs do too), then you'll need to install the certificate used by your MITM proxy, or use some kind of VPN to bypass it.
apt-get install ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20180409).
Domain proxy (Websence) substitutes the certificate.
I imported a websenke.cer and trusted domain CA from a windows host to /usr/share/ca-certificates/extra/websence.crt