From 9a6250229d7155390e15fc21e6bf63bd03ab3eb4 Mon Sep 17 00:00:00 2001 From: Jonas Juselius Date: Fri, 20 Nov 2020 20:01:12 +0100 Subject: [PATCH] Allow adding extra SANs in pki.nix --- modules/pki.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/pki.nix b/modules/pki.nix index d24a039..4664c31 100644 --- a/modules/pki.nix +++ b/modules/pki.nix @@ -44,7 +44,7 @@ let L = "generated"; } ]; - hosts = [ "${args.hosts}" ]; + hosts = args.hosts; }; in pkgs.writeText "${args.cn}-csr.json" (builtins.toJSON csr); @@ -61,7 +61,7 @@ rec { conf = { cn = attrs.cn; ca = attrs.ca; - csr = gencsr { cn = attrs.cn; o = attrs.o; hosts = ""; }; + csr = gencsr { cn = attrs.cn; o = attrs.o; hosts = attrs.hosts; }; }; cfssl = conf: ''