How to decrypt a GPG file without a secret key?

How to decrypt a GPG file without a secret key?

The encrypted file, the pass-phrase file, and public key is then obtained and imported on Local Fedora 32 machine: 4. Attempts to decrypt the file using the passphrase file and without it fail: I cannot determine why the imported gpg public key won’t work and why gpg complains that a secret key is needed.

Why does GPG-D-V say decryption failed?

This message can also happen if your pinentry program isn’t working properly, and thus gpg can’t get the passphrase to unlock the decryption key. This has happened to me a couple of times. If this is the case, gpg -d -v will appear to select the correct key and then just hang for a while before giving up.

How to encrypt an email address in GPG?

You need to specify the key that you want to use for encryption, so the command you need in this case is gpg -r [email protected] –encrypt file-to-encrypt. I faced the same problem (expired public key) and came across this thread.

Why is the GPG public key not working?

I cannot determine why the imported gpg public key won’t work and why gpg complains that a secret key is needed. Thank you for reading. Last edited by Sum1; 06-08-2020 at 07:09 AM.

Who is the public key for the Fedora machine?

The Fedora machine now has a passphrase file, the public key belonging to “[email protected]”, and a file encrypted with a session key that in turn is encrypted using the public key of “[email protected]”. 4. Attempts to decrypt the file using the passphrase file and without it fail:

What happens if GPG can’t get the passphrase?

In this case, gpg can’t get the passphrase to unlock the decryption key. If this is the case, gpg –list-keys will show the correct key, but gpg -d -v will appear to select the correct key and then just hang for a while before giving up. This is it waiting for the pinentry that never actually returns.