setup/ssl/sign

8 lines
149 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 2 ]; then
echo "missing arguments {in_file} {out_signature}" && exit;
fi;
openssl dgst -sha512 -sign ./keys/key -out $2 $1;