Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

while doing cargo build ,error Caused by: [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: self signed certificate in certificate chain) #6796

Open
AiDinho opened this issue Mar 30, 2019 · 0 comments
Labels
A-networking Area: networking issues, curl, etc. C-bug Category: bug S-triage Status: This issue is waiting on initial triage.

Comments

@AiDinho
Copy link

AiDinho commented Mar 30, 2019

Problem

I am new to rust and working through the book .The environment is Ubuntu 16.04.5 LTS on oracle virtual box in windows 7

rustc version -
rustc 1.33.0 (2aa4c46cf 2019-02-28)

cargo version -
cargo 1.33.0 (f099fe9 2019-02-12)

my cargo.toml is like below

[package]
name = "hello_cargo"
version = "0.1.0"
authors = ["biswa"]
edition = "2018"

[dependencies]
rand = "0.3.14"

when I run cargo build I run into this

biswa@biswa-VirtualBox:~/rust_projects/hello_cargo$ cargo build
error: failed to download from `https://crates.io/api/v1/crates/rand/0.3.23/download`

Caused by:
  [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: self signed certificate in certificate chain)

I have read here here and here (this one might not be related) that this is due to ssl certificate but I cant seem to fix it .

I have checked strace with cargo fetch but could not figure out which cert.pem its referring to
the pastebin of strace ->https://pastebin.com/74Cjcgp4

FYI I can use pip in this box so its probably not a network issue( in my limited understanding)

Possible Solution(s)

Notes

Output of cargo version:

@AiDinho AiDinho added the C-bug Category: bug label Mar 30, 2019
@ehuss ehuss added the A-networking Area: networking issues, curl, etc. label Apr 4, 2019
@epage epage added the S-triage Status: This issue is waiting on initial triage. label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Area: networking issues, curl, etc. C-bug Category: bug S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

3 participants