LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Sssues with decrypting messages with GnuPG (https://www.linuxquestions.org/questions/linux-security-4/sssues-with-decrypting-messages-with-gnupg-4175585366/)

TheLinuxCake 07-23-2016 03:58 PM

Sssues with decrypting messages with GnuPG
 
To start, not sure to put this here, or in software. Sorry if it is in the wrong area.
Hello, I am currently having issues decrypting things with GnuPG. Whenever I try to decrypt things with GnuPG nothing much happens.
I have a message, and the key that it should be using.
What I'm doing:
Code:

foo@fooComputer:~$gpg --output message.txt
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1

################################################################
################################################################
###################[Encrypted Message]##########################
################################################################
################################################################
################################################################

-----END PGP MESSAGE-----
You need a passphrase to unlock the secret key for
user: "##### #### <foo@foo.foo>"
2048-bit RSA key, ID ########, created ####-##-## (main key ID #######)

gpg: encrypted with 2048-bit RSA key, ID #######, created ####-##-##
      "###### ##### <#######@foo.foo>"

And nothing is returned. No file, no displayed text. I have also tried it with no "--output message.txt"

Keruskerfuerst 07-24-2016 06:21 AM

Then the key is wrong....

sundialsvcs 07-25-2016 01:50 PM

As documented in man gpg, the command will exit with a return code of at least '1' if a key is incorrect. It should also produce other messages to advise you exactly what went wrong.


All times are GMT -5. The time now is 02:30 PM.