summaryrefslogtreecommitdiff
path: root/scripts/sign_data.sh
blob: 05de5a6b468b4bba914a924e82616e95e694e4a9 (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 3 ]
then
  echo "Usage: `basename $0` <algorithm> <key file> <input file>"
  exit -1
fi

./signature_digest_utility $1 $3 | openssl rsautl -sign -pkcs -inkey $2