You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix tpmr.sh: use tpm_owner_passphrase from prompt function
The prompt_tpm_owner_password() function sets tpm_owner_passphrase variable,
but tpm2_seal was using an unset tpm_owner_password variable instead.
This caused evictcontrol to fail with auth error (0x9A2) since no passphrase
was being passed to the TPM command.
Also standardizes all user-facing strings and variables to use 'passphrase'
instead of 'password' for TPM owner auth, including the cache file path.
Fixes regression introduced in commit 16648ca.
DIE "Setting HOTP secret on $DONGLE_BRAND failed after 3 attempts. To reset $prompt_message PIN: redo Re-Ownership, or use Nitrokey App 2, or contact Nitrokey support."
164
+
DIE "Setting HOTP secret on $DONGLE_BRAND failed after 3 attempts. To reset GPG Admin PIN: redo Re-Ownership, or use Nitrokey App 2, or contact Nitrokey support."
167
165
;;
168
166
"Librem Key")
169
-
DIE "Setting HOTP secret on $DONGLE_BRAND failed after 3 attempts. To reset $prompt_message PIN: redo Re-Ownership or contact Purism support."
167
+
DIE "Setting HOTP secret on $DONGLE_BRAND failed after 3 attempts. To reset GPG Admin PIN: redo Re-Ownership or contact Purism support."
170
168
;;
171
169
*)
172
170
DIE "Setting HOTP secret failed after 3 attempts"
@@ -177,7 +175,7 @@ if [ "$admin_pin_status" -ne 0 ]; then
177
175
else
178
176
# Default PIN was accepted — security reminder, not a fatal error.
179
177
# NOTE prints blank lines before/after and is always visible; no INPUT needed.
180
-
NOTE "Default $prompt_message PIN detected. Change it via Options --> OEM Factory Reset / Re-Ownership."
178
+
NOTE "Default GPG Admin PIN detected. Change it via Options --> OEM Factory Reset / Re-Ownership."
0 commit comments