Rsa2048Sha356GenerateKeys.exe

Rsa2048Sha256GenerateKeys.exe

Name

Rsa2048Sha256GenerateKeys.exe - generate security keys.

Synopsis

Rsa2048Sha256GenerateKeys [Options]

Description

The Rsa2048Sha256GenerateKeys tool generates custom RSA 2048 SHA 256 public and private signing keys for firmware images.

Options

-h, --help show this help message and exit
--version show program's version number and exit
-o [filename [filename ...]], --output [filename [filename ...]]
specify the output private key filename in PEM format
-i [filename [filename ...]], --input [filename [filename ...]]
specify the input private key filename in PEM format
--public-key-hash PUBLICKEYHASHFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in binary format
--public-key-hash-c PUBLICKEYHASHCFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in C structure format
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level

Status codes returned

Return Value

Description

STATUS_SUCCESS 0

The action was completed as requested.

STATUS_ERROR 2

The action failed.

Examples

  1. In order to generate a new private key file (PEM file) and its matching public key file, run the command shown below. The names of the output files can be modified as needed.

The directory shown in the following example will need to exist or to be created:

Rsa2048Sha256GenerateKeys.exe –o c:\Keys\MyPrivateKey.pem –-public-key-hash c:\Keys\MyPublicKey.bin

Note: *The PEM file created contains a private key that must be protected. TianoCore nor Intel® Corporation provide facilities to protect the private key. Instead, you are responsible for the protection of private keys.

Bugs

No known bugs.

Report bugs to [email protected]

Files

None

See also

None

License

Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at:

http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.