Helper command to verify package signatures, mainly for debugging.
Also fix a copy-paste mistake in error message in distsign.
Updates #8760
Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
returnfmt.Errorf("signature %q for key %q does not validate with the current release signing key; either you are under attack, or attempting to download an old version of Tailscale which was signed with an older signing key",sigURL,srcURL)
returnfmt.Errorf("signature %q for file %q does not validate with the current release signing key; either you are under attack, or attempting to download an old version of Tailscale which was signed with an older signing key",sigURL,srcURL)
fs.StringVar(&verifyPackageSignatureArgs.signPubPath,"sign-pub-path","signing-public-key.pem","path to the signing public key; this can be a bundle of multiple keys")
fs.StringVar(&verifyPackageSignatureArgs.packagePath,"package-path","","path to the package that was signed")
fs.StringVar(&verifyPackageSignatureArgs.sigPath,"sig-path","signature.bin","path to the signature file")