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

Peer certificate cannot be authenticated #5924

Open
lcdunstan opened this issue Aug 22, 2018 · 2 comments
Open

Peer certificate cannot be authenticated #5924

lcdunstan opened this issue Aug 22, 2018 · 2 comments
Labels
A-diagnostics Area: Error and warning messages generated by Cargo itself. A-networking Area: networking issues, curl, etc. S-triage Status: This issue is waiting on initial triage.

Comments

@lcdunstan
Copy link

I installed this:

cargo 1.29.0-nightly (6a7672ef5 2018-08-14)

And I'm trying to build https://github.com/nokia/nperf but it can't download dependencies:

 Downloading log v0.4.4
error: unable to get packages from source                                                                                                                                                                   

Caused by:
  [60] Peer certificate cannot be authenticated with given CA certificates (SSL certificate problem: unable to get local issuer certificate)

It is probably something to do with the corporate network security but cargo doesn't even tell me what URL it is trying to download so how do I diagnose it? "cargo fetch -vv" displays the same output as "cargo fetch", which seems strange. "cargo update" works fine.

@lcdunstan
Copy link
Author

I figured out how to add the necessary root CA, but still, why didn't it display the URL that failed?

alexcrichton added a commit to alexcrichton/cargo that referenced this issue Aug 22, 2018
Hopefully will help diagnose issues like rust-lang#5924
@alexcrichton
Copy link
Member

Thanks for the report! Good to hear it's working now, and I'm hoping that #5926 will make this a bit easier to diagnose in the future

bors added a commit that referenced this issue Aug 22, 2018
List URL in HTTP download failures

Hopefully will help diagnose issues like #5924
@ehuss ehuss added the A-networking Area: networking issues, curl, etc. label Sep 23, 2019
@ehuss ehuss added the A-diagnostics Area: Error and warning messages generated by Cargo itself. label Dec 11, 2022
@epage epage added the S-triage Status: This issue is waiting on initial triage. label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Error and warning messages generated by Cargo itself. A-networking Area: networking issues, curl, etc. S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

4 participants