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

Eelco Dolstra eelco.dolstra at logicblox.com
Thu Feb 5 18:11:21 CET 2015


Hi,

On 04/02/15 23:18, Bjørn Forsman wrote:

>> The following should work:
>>
>>   environment.etc."ssl/certs/ca-bundle.crt".source = lib.mkForce ...;
> 
> Unfortunately it does not. That also results in "mismatched duplicate
> entry ..." error.

I've added an option ‘security.pki.certificateFiles’. You should now be able to say:

  security.pki.certificateFiles = [ ./my-certificate.crt ];

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list