-
Notifications
You must be signed in to change notification settings - Fork 2.6k
The SSL certificate is invalid #1978
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
Comments
|
Is there any progress on this? |
This looks like Cargo may have been built from scratch rather than being a nightly, @radare how'd you install Cargo/Rust to get this error? Unfortunately I think we're giving as much information as we've got right now, I'm not sure if there's more contextual information cargo has to propagate upwards. |
I can reproduce it with the package of voidlinux. The nightly build from the cargo web page works as expected
|
Oh interesting! What's voidlinux? Is there something I can do to reproduce this locally? |
http://voidlinux.eu http://voidlinux.eu/ I guess you can reproduce this issue by downloading the r2live iso http://bin.rada.re/r2live-20150901.iso http://bin.rada.re/r2live-20150901.iso which is based on voidlinux, and then install cargo like this: xbps-install cargo git clone any rust project and run cargo update. iirc downloading the nightly official build seems to work fine. you can check the pkg template here: https://github.com/voidlinux/void-packages/blob/master/srcpkgs/cargo/template https://github.com/voidlinux/void-packages/blob/master/srcpkgs/cargo/template thanks!
|
Hm so I didn't quite go the route of installing from scratch, but I ran the docker image for voidlinux after which I did:
And everything worked out ok? Perhaps something is misconfigured locally? Do the certificates installed need to be updated perhaps? |
I'm also seeing this issue on 64-bit Porteus. There was no problem with the 32-bit version of Porteus using my own builds of cargo but the 64-bit version and the official x86_64 nightly are producing the error. The system date is correct and no other app complains about certificates. EDIT: |
@petevine like with the case above, is there a way that I would be able to reproduce this? Cargo has to do a little work to discover the system certificates and it could be that they're not being discovered |
Almost certainly the problem here as the filesystem layout is a little different between the two versions. You probably shouldn't waste too much time on trying to run the live distro yourself (http://build.porteus.org/) but maybe you could provide a few hints where cargo's expecting to find the certs so that symlinking would be enough. I'm going to find out if the certs' locations are different and report back. |
You can find the current search locations in the |
Thx, I'll have a look. The porteus link above will lead you to an image creation wizard so as long as you pick 64bit (uefi) it probably won't matter what other options you choose. |
Oh holy cow sorry! I think I accidentally deleted @petevine's last comment, so here it is:
Thanks for taking a look @petevine! @radare any updated on the voidlinux side of things? |
@alexcrichton no news, still the same problems |
@radare, you had better eliminate the obvious as well and if you do have the certificates, try locating |
Yeah i have managed to fix this thing.
i guess that was a distro issue, but its strange that the nightly build of cargo was working as expected and not this one. thanks for the tips
|
Just to be on the safe side, a symlink to certs.pem is probably a good idea or other stuff might break :) |
@radare if you add another case here for |
Thanks for pointing out. I just did a pullreq: sfackler/rust-openssl#287 Btw, voidlinux uses libressl. which can be the reason behind this different path.
|
@alexcrichton, @radare, the pull request is merged. I think we should close the issue. |
@rasendubi ok thanks for the reminder! |
Still experiencing this issue when installing cargo in Ubuntu 17.04 Docker container as following:
The same script works fine in Debian Jessie image |
Just reproduced the problem on a current Gentoo system and today's nightly. |
Never mind the below, that is issue #3340. I also did, on current Arch Linux and today's nightly.
|
Getting the same in a Fedora 25 docker container:
Fixed with:
|
@lukehinds it looks like that case isn't handled by the |
@alexcrichton , sure, will take a look. |
For some reason I get this:
But i can't find a way to get more information (why this cert is invalid), and having at least one commandline option or environment variable to ignore them would be helpful
The text was updated successfully, but these errors were encountered: