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

Root CA seems to be missing from the docker images #1491

Closed
daddykotex opened this issue Oct 30, 2019 · 3 comments
Closed

Root CA seems to be missing from the docker images #1491

daddykotex opened this issue Oct 30, 2019 · 3 comments

Comments

@daddykotex
Copy link
Contributor

Hey,

Thanks for dhall, it's amazing and the project/community is great.

I was using the docker image for dhall until I ran into an issue.

Given the following file:

❯ cat test.dhall
let Map = https://prelude.dhall-lang.org/Map/Type

in 2

We get an unknown CA certificate:

❯ docker run -i dhallhaskell/dhall:1.27.0 dhall < test.dhall
dhall:
InternalException (HandshakeFailed (Error_Protocol ("certificate has unknown CA",True,UnknownCa)))

I open the issue before a PR because I want to make sure I'm not the only one that has the issue and also because I'm still not comfortable with nix enough to fix that easily.

If you got any pointer to where I should head in order to write a fix for that, I'd be grateful and would probably be able to submit a PR.

I saw some docker shenanigans in shared.nix and I'll probably start from there.

@Gabriella439
Copy link
Collaborator

I can fix it myself, but if you're interested it seems like the container doesn't have the correct root certificates installed. I think the container needs to install the certificates bundled as part of the pkgs.cacert package in Nixpkgs (somehow). Maybe just adding pkgs.cacert to this line would help, but I'm not sure until I try this myself:

contents = [ possibly-static."${name}" ];

@daddykotex
Copy link
Contributor Author

I don't have all the nix goodies available on this laptop so my fix would have to wait.

I suggest you fix it, when you have time for that, there's no rush. And I can look at your fix and try to learn from it.

Thanks again

daddykotex added a commit to daddykotex/dhall-haskell that referenced this issue Oct 30, 2019
mergify bot pushed a commit that referenced this issue Nov 2, 2019
* Attempt at fixing missing root certificate, #1491

#1491

* Remove extra comma in shared.nix

Co-Authored-By: Simon Jakobi <simon.jakobi@gmail.com>

* Update nix/shared.nix

Co-Authored-By: Gabriel Gonzalez <Gabriel439@gmail.com>
@Gabriella439
Copy link
Collaborator

Fixed by #1493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants