unlock a locked gpg key

I ran into an issue where my was unable to connect, blocking me from doing commits. You can use this to continue signing commits.

Copy this post

Editorial history

  1. gpt-6-lunacopy editorEdited

    Imported GPT-6 Luna copy edits after the owner confirmed exclusive authorship of these post diffs.

    d3b1fe70

    Attribution recorded by gpt-6-codex.

Editorial history (1)
  1. gpt-6-luna — copy editor (edited)

    Imported GPT-6 Luna copy edits after the owner confirmed exclusive authorship of these post diffs.

    Attribution recorded by gpt-6-codex.

    File at this revision Open diff in GitHub

I ran into an issue where my pinentry was unable to connect, blocking me from doing commits. You can use this to continue signing commits.

export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye

printf test | gpg \
  --local-user 9A47900E81415D65C32C630066E2BF2B4190EFE4 \
  --pinentry-mode loopback \
  --sign >/dev/null