xref: /aosp_15_r20/external/vboot_reference/tests/external_rsa_signer.sh (revision 8617a60d3594060b7ecbd21bc622a7c14f3cf2bc)
1#!/bin/bash
2
3# Copyright 2010 The ChromiumOS Authors
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7if [ $# -ne 1 ]; then
8  echo "Usage: $0 <private_key_pem_file>"
9  echo "Reads data to sign from stdin, encrypted data is output to stdout"
10  exit 1
11fi
12
13openssl rsautl -sign -inkey "$1"
14