I was sent a public key in order to decrypt a pgp-encrypted file as well as a passphrase. I imported the key with:
gpg --import publickey.asc
And verified it with
gpg --list-keys
Now, I'm trying to decrypt the file. I put the passphrase in a file called pass.txt and ran this at the command line:
gpg -d encryptedfile.txt.pgp --output encryptedfile.txt
But I get:
gpg: encrypted with ELG-E key, ID XXXXXXXXX
gpg: encrypted with 2048-bit RSA key, ID XXXXXXXXX, created 2010-03-10
"XXXXXXXXX XXXXXXXXX (XXXXXXXXX FTP Key) <[email protected]>"
gpg: decryption failed: secret key not available
If I do gpg --list-secret-keys, this one isn't in there... How do I associate the passphrase with the imported key?