<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="outline-text-3" id="text-gethelp">
<p>Hello,</p>
<p>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. <br>
</p>
<p>I can see the individual *.gpg files that form the password
store but I am not able to decrypt them.</p>
<p>Here are some things I have tried<br>
</p>
<p>$gpg -K
<br>
<br>
returns with nothing
<br>
<br>
Running gpg directly on a single file in the password store
using
<br>
<br>
$gpg -d filename
<br>
<br>
gives
<br>
<br>
$gpg: encrypted with 3072-bit RSA key, ID 94FDE31D5B3E9BC6,
created 2020-03-11
<br>
<a class="moz-txt-link-rfc2396E"
href="mailto:my@emailaddress.com">"my@emailaddress.com"</a>
<br>
$gpg: decryption failed: No secret key <br>
</p>
<p><br>
</p>
<p>I tried exporting the secret key from the old drive using <br>
</p>
<p>$gpg --export-secret-keys --armor --output privkey.asc
<a class="moz-txt-link-abbreviated" href="mailto:my@emailaddress.com">my@emailaddress.com</a><br>
<br>
</p>
<p>and tried importing on the new drive using<br>
<br>
$gpg --import privkey.asc<br>
<br>
the import process seems to succeed with the following message<br>
$gpg: key D96B626F551DE067: <a class="moz-txt-link-rfc2396E"
href="mailto:my@emailaddress.com">"my@emailaddress.com"</a>
not changed
<br>
$gpg: key D96B626F551DE067: secret key imported
<br>
$gpg: Total number processed: 1
<br>
$gpg: unchanged: 1
<br>
$gpg: secret keys read: 1
<br>
$gpg: secret keys unchanged: 1
<br>
</p>
Not sure if it is important or not but inside the
~/.gnupg/private-keys-v1.d/ directory I have 2 files
<br>
<p>5A96EC16F8D4B37AEEF42D805853853AAECAAE20.key
<br>
6E8963C9E7FBC51DEFA9DDE31FC12AC65F7D865D.key
<br>
<br>
Cheers, Neil
</p>
</div>
</body>
</html>