aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2016-12-24 22:15:12 +0100
committerLeah Rowe <info@minifree.org>2017-01-15 14:24:45 +0000
commit5350a0ded28d3f8345f47d896bc88c8906e56f90 (patch)
tree3782959a1c382a5f07fa715b7092a97d1b57dda2
parent05d5710577786516c8f29735246edeafc86c85fe (diff)
downloadlibrebootfr-5350a0ded28d3f8345f47d896bc88c8906e56f90.tar.gz
librebootfr-5350a0ded28d3f8345f47d896bc88c8906e56f90.zip
cros-scripts: cros-boot-keys: Only use keys directory when needed
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rwxr-xr-xprojects/cros-scripts/install/cros-boot-keys4
1 files changed, 2 insertions, 2 deletions
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"