libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 5350a0ded28d3f8345f47d896bc88c8906e56f90
parent 05d5710577786516c8f29735246edeafc86c85fe
Author: Paul Kocialkowski <contact@paulk.fr>
Date:   Sat, 24 Dec 2016 22:15:12 +0100

cros-scripts: cros-boot-keys: Only use keys directory when needed

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Diffstat:
projects/cros-scripts/install/cros-boot-keys | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/projects/cros-scripts/install/cros-boot-keys b/projects/cros-scripts/install/cros-boot-keys @@ -65,9 +65,9 @@ generate() { key_length=$(( 1 << (10 + ($algorithm / 3)) )) - openssl genrsa -F4 -out "$keys_directory/$key.$PEM" "$keys_directory/$key_length" + openssl genrsa -F4 -out "$keys_directory/$key.$PEM" "$key_length" openssl req -batch -new -x509 -key "$keys_directory/$key.$PEM" - openssl req -batch -new -x509 -key "$keys_directory/$key.$PEM" -out "$key.$CRT" + openssl req -batch -new -x509 -key "$keys_directory/$key.$PEM" -out "$keys_directory/$key.$CRT" dumpRSAPublicKey -cert "$keys_directory/$key.$CRT" > "$keys_directory/$key.$KEYB" futility vbutil_key --pack "$keys_directory/$key.$VBPUBK" --key "$keys_directory/$key.$KEYB" --version "$KEYS_VERSION" --algorithm "$algorithm" futility vbutil_key --pack "$keys_directory/$key.$VBPRIVK" --key "$keys_directory/$key.$PEM" --algorithm "$algorithm"