Skip to content

Commit

Permalink
security/pki: handle certificate paths with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmorley committed Aug 16, 2024
1 parent 91010a5 commit 44863a0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/security/pki/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ let
blacklist = cfg.caCertificateBlacklist;
};

caCertificates = pkgs.runCommand "ca-certificates.crt"
{ files =
cfg.certificateFiles ++
[ (builtins.toFile "extra.crt" (concatStringsSep "\n" cfg.certificates)) ];
}
caCertificates = pkgs.runCommand "ca-certificates.crt" {}
''
cat $files > $out
cat ${escapeShellArgs (
cfg.certificateFiles ++
[ (builtins.toFile "extra.crt" (concatStringsSep "\n" cfg.certificates)) ]
)} > $out
'';
in

Expand Down

0 comments on commit 44863a0

Please sign in to comment.