Hello,

I have recently installed a new SSD on my computer and I am trying to move my password store (using pass) to the new drive. I am using Ubuntu 20.04.2 LTS.

I can see the individual *.gpg files that form the password store but I am not able to decrypt them.

Here are some things I have tried

$gpg -K

returns with nothing

Running gpg directly on a single file in the password store using

$gpg -d filename

gives

$gpg: encrypted with 3072-bit RSA key, ID 94FDE31D5B3E9BC6, created 2020-03-11
"m...@emailaddress.com"
$gpg: decryption failed: No secret key


I tried exporting the secret key from the old drive using

$gpg --export-secret-keys --armor --output privkey.asc m...@emailaddress.com

and tried importing on the new drive using

$gpg --import privkey.asc

the import process seems to succeed with the following message
$gpg: key D96B626F551DE067: "m...@emailaddress.com" not changed
$gpg: key D96B626F551DE067: secret key imported
$gpg: Total number processed: 1
$gpg:              unchanged: 1
$gpg:       secret keys read: 1
$gpg:  secret keys unchanged: 1

Not sure if it is important or not but inside the ~/.gnupg/private-keys-v1.d/ directory I have 2 files

5A96EC16F8D4B37AEEF42D805853853AAECAAE20.key
6E8963C9E7FBC51DEFA9DDE31FC12AC65F7D865D.key

Cheers, Neil

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to