nixpkgs/pkgs
Rickard Nilsson 95fdc8cf29 openjdk: Introduce JAVAX_NET_SSL_TRUSTSTORE env
This small patch makes it possible to control java's truststore path through
the environment. This lets you add (system- or session-wide) CAs that should
be allowed by Java. Java users can still use -Djavax.net.ssl.truststore to
override the truststore set by JAVAX_NET_SSL_TRUSTSTORE.

Something like this can be used to build the truststore (in this example just
using the standard pkgs.cacert CA-bundle):

{
  environment.variables.JAVAX_NET_SSL_TRUSTSTORE = "${
    pkgs.runCommand "cacerts" {} ''
      ${pkgs.perl}/bin/perl \
        ${pkgs.path}/pkgs/development/compilers/openjdk/generate-cacerts.pl \
        ${pkgs.jre}/bin/keytool \
        ${pkgs.cacert}/etc/ca-bundle.crt
      mv cacerts $out
    ''
  }";
}

Ideally, the dependency on pkgs.cacert should also be removed from pkgs.openjdk
to avoid rebuilding java each time the standard CA-bundle changes. Something
along the example above must then be added to NixOS (however, it would be
nice to not depend on ${pkgs.jre}/bin/keytool to generate that environment
variable).
2014-12-12 01:14:09 +01:00
..
applications tomahawk: Fix resolver signature verification. 2014-12-10 10:28:43 +01:00
build-support Merge branch 'master' into staging 2014-12-07 14:02:48 +01:00
data Merge branch 'staging' 2014-12-08 16:28:45 +01:00
desktops xfdesktop: 4.10.2 -> 4.10.3 2014-12-09 11:29:16 +01:00
development openjdk: Introduce JAVAX_NET_SSL_TRUSTSTORE env 2014-12-12 01:14:09 +01:00
games tibia: update to 10.64 2014-12-04 13:44:30 +00:00
misc clearlooks-phenix: Fix the Meta Description 2014-12-07 18:16:11 -05:00
os-specific Add ftop: show progress of open files and file systems 2014-12-10 05:34:57 +01:00
servers mpd: update to 0.19.6 2014-12-10 07:36:17 +00:00
shells Merge branch 'master' into staging 2014-12-07 14:02:48 +01:00
stdenv
test
tools tor-arm: kill tabs 2014-12-10 04:21:14 -06:00
top-level nixpkgs: add tor-arm 1.4.5.0 2014-12-10 03:59:59 -06:00