coreboot-libre-fam15h-rdimm/3rdparty/vboot/tests/external_rsa_signer.sh

10 lines
196 B
Bash
Executable File

#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $0 <private_key_pem_file>"
echo "Reads data to sign from stdin, encrypted data is output to stdout"
exit 1
fi
openssl rsautl -sign -inkey $1