* Provide a bundle of CA certificates in /etc/ca-bundle.crt, and set

the CURL_CA_BUNDLE environment variable.  This allows curl to work
  without the `-k' flag on https sites with a properly signed
  certificate.

svn path=/nixos/trunk/; revision=19572
This commit is contained in:
Eelco Dolstra 2010-01-20 14:22:47 +00:00
parent 6502806689
commit 8a6346e477
2 changed files with 22 additions and 0 deletions

View file

@ -31,6 +31,7 @@
./programs/ssh.nix
./programs/ssmtp.nix
./rename.nix
./security/ca.nix
./security/consolekit.nix
./security/pam.nix
./security/pam_usb.nix

21
modules/security/ca.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
with pkgs.lib;
{
config = {
environment.etc = singleton
{ source = "${pkgs.cacert}/etc/ca-bundle.crt";
target = "ca-bundle.crt";
};
environment.shellInit =
''
export CURL_CA_BUNDLE=/etc/ca-bundle.crt
'';
};
}