Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/modules/security/ca.nix

23 lines
346 B
Nix
Raw Normal View History

* 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
2010-01-20 14:22:47 +00:00
{ 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
* Allow Git to find the CA bundle. svn path=/nixos/trunk/; revision=27735
2011-07-12 12:45:48 +00:00
export GIT_SSL_CAINFO=/etc/ca-bundle.crt
* 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
2010-01-20 14:22:47 +00:00
'';
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 1095ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API