0
I am running "pass: the standard unix password manager" v1.7.3 on Fedora 31.
I create a password for "mysite" via
$ pass generate mysite
It creates an entry in my .password-store folder: mysite.gpg which is the encrypted password.
But somehow, I can't decrypt this file :
$ pass mysite
gpg: decryption failed: No secret key
or
$ gpg -d mysite.gpg
gpg: encrypted with 2048-bit RSA key, ID 4B***********AD, created 2019-10-08
"User1 <email1@mail.com>"
gpg: decryption failed: No secret key
Here are some more informations:
$ gpg --list-secret-keys
/home/user/.gnupg/pubring.kbx
--------------------------------
sec rsa2048 2019-11-29 [SC]
DF2*************************************B3D
uid [ultimate] User2 <email2@mail.com>
ssb rsa2048 2019-11-29 [E]
$ gpg --list-keys
/home/user/.gnupg/pubring.kbx
--------------------------------
pub rsa2048 2019-11-29 [SC]
DF2***************************************B3D
uid [ultimate] User2 <email2@mail.com>
sub rsa2048 2019-11-29 [E]
pub rsa2048 2019-08-17 [SC]
6A2***************************************18D
uid [ultimate] User3 <email1@mail.com>
sub rsa2048 2019-08-17 [E]
pub rsa2048 2019-10-08 [SC] [expires: 2021-10-07]
759***************************************6C0
uid [ultimate] User1 <email1@mail.com>
sub rsa2048 2019-10-08 [E] [expires: 2021-10-07]
Moreover, initially, the .password-store
folder was created on an other machine. I just type "pass generate mysite " and the "no secret keys" on my current machine.
I read here https://stackoverflow.com/questions/28321712/gpg-decryption-fails-with-no-secret-key-error that I should import some secret keys but I don't know which one and on what machine.
Any help to debug this problem ?
Note that the command :
$pass generate essai2
is still working but
$pass essai2
yields the same error: "No secret key".
ps: I really need the password stored in "mysite.gpg", is it possible that the clear password can be lost ?