str4d/rage

Error: (stanza 0 0) Failed to decrypt YubiKey stanza

TornaxO7 opened this issue · 1 comments

Environment

  • OS: NixOS
  • rage version: rage 0.9.1

What were you trying to do

I'm trying to use rage with age-plugin-yubikey.

What happened

# create the identity file; It'll be stored as `yubikey-identity.txt`
age-plugin-yubikey
# create a test file
echo "test" > test.txt
# encrypt and try to decrypt the file.
cat test.txt | rage -r age1yubikey1qgtar0k2elwymtm92ws84zpw2c3ehalxwj8cnevf7lunnva7l8xju03lfl5 -o test.age
# this one fails:
cat test.age | rage -d -i yubikey-identity.txt

The error message if I'm trying to decrypt:

Waiting for ⁨age-plugin-yubikey⁩...
Error: (stanza 0 0) Failed to decrypt YubiKey stanza

[ Did rage not do what you expected? Could an error be more useful? ]
[ Tell us: https://str4d.xyz/rage/report 

I also created an issue in age-plugin-yubikey (I'm unsure in which repository I should open this issue): str4d/age-plugin-yubikey#150

Ok, I found the solution: I needed to press on my yubikey.