sshign - sign and verify data using SSH keys
sshign secret-key-file < data-to-sign > signature
sshign public-key-file signature-file < data-to-verify
To generate a signature, call sshign secret-key-file. Reads data from stdin and computes the signature using the private SSH in secret-key-file. Prints the resulting signature to stdout in text format.
To verify a signature, call sshign public-key-file signature-file. Reads data read from stdin and checks the signature in signature-file against the public SSH key in public-key-file. Returns with exit code 0 on successful verification and with exit code 1 in case of failed verification.
Signing:
$ echo
"This is my message" > sign-me.txt
$ ./sshign ˜/.ssh/id_rsa < sign-me.txt >
signature.txt
Verification:
$ ./sshign
˜/.ssh/id_rsa.pub signature.txt < sign-me.txt
verify: ok
Maintained by Thomas Renoth <[email protected]>. Up-to-date sources can be found at https://git.sr.ht/˜minus/sshign and bugs/patches can be submitted by email to ˜minus/[email protected].