Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oem-factory-reset: fix keygen prompt order
- gpg --version: gpg (GnuPG) 2.2.21 - Admin PIN was requested after Comment - Confirmation of key expiration is not prompted since command-fd is supplied - Prompts observed (since script supplies --command-fd): - cardedit.prompt [answer: admin] - cardedit.prompt [answer: generate] - cardedit.genkeys.backup_enc [answer: n] - passphrase.enter [answer: $USER_PIN_DEF] - keygen.valid [answer: 0] - keygen.name [answer: $GPG_USER_NAME] - keygen.email [answer: $GPG_USER_MAIL] - keygen.comment [answer: $GPG_USER_COMMENT] - passphrase.enter [answer: $ADMIN_PIN_DEF] - In comparison, prompts when user does generation manually (no command-fd): - Make off-card backup of encryption key? (Y/n) - PIN: - Key is valid for? (0) - Is this correct? (y/N) - Real name: - Email address: - Comment: - Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? - Admin PIN:
- Loading branch information