From a231446d4cf4d9d033727a1abee332aa0bfe4d1e Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 23 Dec 2025 07:18:26 -0600 Subject: tree-wide: 25.11 updates --- pki/ca.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pki') diff --git a/pki/ca.nix b/pki/ca.nix index f8e5847..c33bce4 100644 --- a/pki/ca.nix +++ b/pki/ca.nix @@ -76,7 +76,7 @@ with lib; let config = { fingerprint = { - sha1-lower = readFile (pkgs.runCommandNoCCLocal "cert-${config.path}-fprint-sha1-lower" {} '' + sha1-lower = readFile (pkgs.runCommandLocal "cert-${config.path}-fprint-sha1-lower" {} '' ${openssl} x509 -in ${config.cert} -noout -sha1 -fingerprint \ | sed 's/^.*=//' \ | tr -d $':\n' \ @@ -84,7 +84,7 @@ with lib; let >>$out ''); - sha256-bytes-upper = readFile (pkgs.runCommandNoCCLocal "cert-${config.path}-fprint-sha256-bytes-upper" {} '' + sha256-bytes-upper = readFile (pkgs.runCommandLocal "cert-${config.path}-fprint-sha256-bytes-upper" {} '' ${openssl} x509 -in ${config.cert} -noout -sha256 -fingerprint \ | sed 's/^.*=//' \ | tr -d $'\n' \ @@ -105,7 +105,7 @@ with lib; let path = optionalString (config.issuer != null) (cfg.${config.issuer}.path + ".") + name; } // optionalAttrs (leafOf != null) { - commonName = readFile (pkgs.runCommandNoCCLocal "cert-${config.path}-common-name" {} '' + commonName = readFile (pkgs.runCommandLocal "cert-${config.path}-common-name" {} '' ${openssl} x509 -in ${config.cert} -noout -subject -nameopt multiline \ | grep commonName \ | sed 's/^.*=\s*//' \ -- cgit v1.2.3