Skip to content

Commit

Permalink
oem-factory-reset: switch GPG_ALGO=p256 for now TOO:REVERT. Also kill…
Browse files Browse the repository at this point in the history
… scdaemon when going into action

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
  • Loading branch information
tlaurion committed May 16, 2024
1 parent 14896d3 commit eb339e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions initrd/bin/oem-factory-reset
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ MAX_HOTP_GPG_PIN_LENGTH=25
CUSTOM_PASS_AFFECTED_COMPONENTS=""

# Default GPG Algorithm is RSA
GPG_ALGO="RSA"
GPG_ALGO="p256"
# Default RSA key length
RSA_KEY_LENGTH=3072

Expand Down Expand Up @@ -1140,7 +1140,7 @@ assert_signable
# Action time...

# clear gpg-agent cache so that next gpg calls doesn't have past keyring in memory
killall gpg-agent >/dev/null 2>&1 || true
killall gpg-agent scdaemon >/dev/null 2>&1 || true
# clear local keyring
rm -rf /.gnupg/*.kbx /.gnupg/*.gpg >/dev/null 2>&1 || true

Expand Down

0 comments on commit eb339e8

Please sign in to comment.