Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
TornaxO7 opened this issue Jun 19, 2023 · 1 comment
Closed

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

TornaxO7 opened this issue Jun 19, 2023 · 1 comment

Comments

@TornaxO7
Copy link

TornaxO7 commented Jun 19, 2023

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

@TornaxO7
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant