external_rsa_signer.sh 196 B

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