UX: Try passphrase on multiple identities #212
ElvishJerricco
started this conversation in
UX reports
Replies: 1 comment 1 reply
-
Hmm, I am a bit confused, because currently age doesn't support passphrase encrypted private key files, it only supports passphrase encrypted files. If it asks for a passphrase, it's the passphrase of the file, not of the key. If it uses one of the keys, it won't ask for a passphrase. Can you elaborate or maybe post an example sequence? Thank you! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What were you trying to do
Decrypt a file in a script without knowing who will be entering the passphrase.
What happened
age does not support trying multiple identities when decrypting a file. E.G. a file was encrypted with
--recipients-file <(cat alice.pub bob.pub)
. A script that runs automatically on boot usesage -d -i alice.priv -i bob.priv
. It might be either Alice or Bob who is present to enter the passphrase for their private key; the system does not know which. It should try the passphrase on both private keys so that decryption will succeed no matter which one of them is present.Beta Was this translation helpful? Give feedback.
All reactions