From 5350a0ded28d3f8345f47d896bc88c8906e56f90 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sat, 24 Dec 2016 22:15:12 +0100 Subject: cros-scripts: cros-boot-keys: Only use keys directory when needed Signed-off-by: Paul Kocialkowski --- projects/cros-scripts/install/cros-boot-keys | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'projects/cros-scripts') diff --git a/projects/cros-scripts/install/cros-boot-keys b/projects/cros-scripts/install/cros-boot-keys index 96194713..230f2ff4 100755 --- 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" -- cgit v1.2.3-70-g09d2