To second this, I had to restore my password store from a backup a while ago, and it worked fairly easily. I ended up copying my GPG key from the backup and downloading my password store using git, and it pretty much "Just Worked."™
You _should_ have been able to just copy .gnupg and .password-store, restart gpg-agent (if it was already running), and try decrypting stuff. One more thing to try (to make sure GPG is setup correctly) is to try to manually decrypt one of the password files (e.g. gpg -d .password-store/path/to/sample/gpg/file.gpg). If that works, the problem is with pass. Otherwise, GPG is messed up and you need to see what's going on there. HTH! - Chiraag -- ಚಿರಾಗ್ ನಟರಾಜ್ PhD Candidate in Engineering at Brown University Pronouns: he/him/his Email: [email protected] Website: http://chiraag.nataraj.us 25/09/19 20:52 ನಲ್ಲಿ, Carl Michael Skog <[email protected]> ಬರೆದರು: > Den ons 25 sep. 2019 kl 20:29 skrev Sam Stone <[1][email protected]>: > > Hi All, > > My old Gentoo box died. I'm trying to install pass on my new Gentoo box. I > managed to copy my old home dir to a usb. I can see password-store > directory and my gnupg directory. gpg --list keys shows the key I used to > originally encrypt my password. I have also installed the gnupg package. > > I ran pass init [email protected]. The new .gpg-id > > contains one line with "[email protected]". The original.gpg-id file on > the usb contains the correct hex id of the key. I copied the contents > orginal .password-store dir into the new one. When I try to decrypt a > password I get a "gpg:decryption failed: No secret key" error. I get this > error regardless of which of the 2 entries are present in the .gpg-id > file. > Every time I've tried to decrypt there has been only .gpg-id entry. > > > I have tried copying the orginal .gpg-id file to the new .password-store > dir. > > I have tried pass init [email protected]. > > > I have tried pass init hex (in lower case) > > > I have tried pass init (in upper case) > > > All the above result in a No secret key error. > > I feel like I'm overlooking something obvious or making a rather simple > mistake. > > > I hope I'm not totally fucked. > > > Any help would be very much appreciated. > > > Did you try: > export GNUPGHOME=/your/usb/drives/path/to/the/old/.gnupg > export PASSWORD_STORE_DIR=/your/usb/drives/path/to/the/old/.password-store > That should mimic you old installation. > If that is working, just plain cp the old stuff(.gnupg and .password-store) to > your new home directory. > > Regards, > Carl Michael Skog > > References: > > [1] mailto:[email protected]
publickey - [email protected]
Description: application/pgp-key
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Password-Store mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/password-store
