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

s3cmd does not work from nix-shell (even without --pure) #15933

Closed
anderspapitto opened this issue Jun 2, 2016 · 3 comments
Closed

s3cmd does not work from nix-shell (even without --pure) #15933

anderspapitto opened this issue Jun 2, 2016 · 3 comments

Comments

@anderspapitto
Copy link
Contributor

Issue description/Steps to reproduce

I have s3cmd installed globally via environment.systemPackages

[anders@gurney:~/devel/card-game]
$ s3cmd ls
[anders@gurney:~/devel/card-game]
$ nix-shell -p s3cmd

[nix-shell:~/devel/card-game]$ s3cmd ls
ERROR: SSL certificate verification failure: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

Technical details

[anders@gurney:~/devel/card-game]
$ nixos-version
16.09.git.1ceb6ea (Flounder)
[anders@gurney:~/devel/card-game]
$ nix-env --version
nix-env (Nix) 1.11.2
[anders@gurney:~/devel/card-game]
$ nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
"16.09.git.1ceb6ea"
@anderspapitto
Copy link
Contributor Author

hmm. This appears to be because nix shell is setting SSL_CERT_FILE

[anders@gurney:~/devel/card-game]
$ env | grep SSL
[anders@gurney:~/devel/card-game]
$ nix-shell -p s3cmd

[nix-shell:~/devel/card-game]$ env | grep SSL
SSL_CERT_FILE=/no-cert-file.crt

I'm not sure why that's done in a non --pure shell

@FRidh
Copy link
Member

FRidh commented Jun 3, 2016

Related are #13744, #15873 and #15571

@FRidh
Copy link
Member

FRidh commented Jul 18, 2016

Closing this since its a known issue and described in #13744.

@FRidh FRidh closed this as completed Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants