From 64b1712e78204d19da00e91239ae4a364f4214f3 Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Thu, 10 Dec 2020 10:32:48 -0500 Subject: [PATCH] oem-factory-reset: set default KEY_LENGTH to 3072 and change expectation management message to console (Fixes #919) --- initrd/bin/oem-factory-reset | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initrd/bin/oem-factory-reset b/initrd/bin/oem-factory-reset index c484ad00..9b58a2a7 100755 --- a/initrd/bin/oem-factory-reset +++ b/initrd/bin/oem-factory-reset @@ -20,7 +20,7 @@ ADMIN_PIN_DEF=12345678 TPM_PASS_DEF=12345678 CUSTOM_PASS="" -RSA_KEY_LENGTH=4096 +RSA_KEY_LENGTH=3072 GPG_USER_NAME="OEM Key" GPG_KEY_NAME=`date +%Y%m%d%H%M%S` @@ -420,7 +420,7 @@ rm /.gnupg/*.kbx 2>/dev/null gpg --list-keys >/dev/null 2>&1 ## reset the GPG Key -echo -e "\nResetting GPG Key...\n(this will take a minute or two)\n" +echo -e "\nResetting GPG Key...\n(this will take around 3 minutes...)\n" gpg_key_reset # parse name of generated key