setup/ssl/sign

8 lines
149 B
Plaintext
Raw Permalink Normal View History

2017-01-18 20:51:05 +00:00
#!/bin/sh
if [ $# -lt 2 ]; then
echo "missing arguments {in_file} {out_signature}" && exit;
fi;
openssl dgst -sha512 -sign ./keys/key -out $2 $1;