diff options
Diffstat (limited to 'scripts/nix-push.in')
-rwxr-xr-x | scripts/nix-push.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in index 0e90ab3c216b..a060ea128fd1 100755 --- a/scripts/nix-push.in +++ b/scripts/nix-push.in @@ -257,8 +257,9 @@ for (my $n = 0; $n < scalar @storePaths2; $n++) { chomp $s; my ($keyName, $secretKey) = split ":", $s; die "invalid secret key file ‘$secretKeyFile’\n" unless defined $keyName && defined $secretKey; - my $sig = encode_base64(signString(decode_base64($secretKey), $info), ""); - $info .= "Signature: 2;$keyName;$sig\n"; + my $fingerprint = fingerprintPath($storePath, $narHash, $refs); + my $sig = encode_base64(signString(decode_base64($secretKey), $fingerprint), ""); + $info .= "Sig: $keyName:$sig\n"; } my $pathHash = substr(basename($storePath), 0, 32); |