[Nix-dev] How to add (self-signed) SSL certificate to NixOS?

Wout Mertens wout.mertens at gmail.com
Thu Feb 5 22:17:09 CET 2015


Hi Eelco,

On Mon Feb 02 2015 at 5:44:21 PM Eelco Dolstra <eelco.dolstra at logicblox.com>
wrote:

> On 02/02/15 16:13, Bjørn Forsman wrote:
>
> > Then I tried to append the certificate contents to the ca-bundle.crt:
> >
> >   environment.etc."ssl/certs/ca-bundle.crt".text = ''
> >     ${builtins.readFile (pkgs.cacert + "/etc/ca-bundle.crt")}
>
> Note that this causes cacert to be built at evaluation time.


Can you elaborate? I'm trying to understand what is wrong here. Is it the
fact that it uses pkgs.cacert directly instead of getting cacert from a
build input?

Wout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150205/6da8d037/attachment-0001.html 


More information about the nix-dev mailing list