diff options
Diffstat (limited to 'pki')
| -rw-r--r-- | pki/ca.nix | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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*//' \ |
