summaryrefslogtreecommitdiff
path: root/tests/external_rsa_signer.sh
blob: 405df420edac29fcb811d5d47999bbd1ca705bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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"