From ecdb144601bcea4075b618b0e78680e057e506f4 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Wed, 11 Sep 2024 15:13:37 +0100 Subject: Update keytool command --- nix-conf/home/otm.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nix-conf') diff --git a/nix-conf/home/otm.nix b/nix-conf/home/otm.nix index 7d7c667..56e1f68 100644 --- a/nix-conf/home/otm.nix +++ b/nix-conf/home/otm.nix @@ -103,9 +103,12 @@ let # and https://github.com/NixOS/nixpkgs/blob/4877ea239f4d02410c3516101faf35a81af0c30e/pkgs/development/compilers/openjdk/jre.nix#L32 passthru.home = "${zscaler-jdk}"; # make sure JAVA_HOME is set installPhase = + # This is probably equivalent to + # $out/bin/keytool -import -noprompt -trustcacerts -alias zscalerrootca -keystore $out/lib/security/cacerts <<< "${zscaler-cert}" + # but follow the zscaler instructions just in case old.installPhase + '' - $out/bin/keytool -import -noprompt -trustcacerts -alias zscalerrootca -keystore $out/lib/security/cacerts <<< "${zscaler-cert}" + ${pkgs.openssl}/bin/openssl x509 -inform pem -outform der <<< "${zscaler-cert}" | $out/bin/keytool -import -noprompt -trustcacerts -alias zscalerrootca -keystore $out/lib/security/cacerts ''; }); -- cgit 1.4.1-2-gfad0