gpg encryption error | No such user ID

0

I'm new to linux and need to encrypt files using public / private keys (GPG).

I generated a key on the server, but when I try to encrypt a file I get an error saying that ID was not found.

I get the following error:

Enter the user ID.  End with an empty line:
gpg: signal 2 caught ... exiting
phdr1569:/informatica/pmuser/Cognizant/script/gpg> gpg -r 9F93F067 -e my-secrets-myname.txt
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: 9F93F067: skipped: unusable public key
gpg: my-secrets-myname.txt: encryption failed: unusable public key
phdr1569:/informatica/pmuser/Cognizant/script/gpg>
phdr1569:/informatica/share/mydir/script/gpg> gpg -e my-secrets-myname.txt
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
You did not specify a user ID. (you may use "-r")

Current recipients:

Enter the user ID.  End with an empty line: [email protected]
No such user ID.

Could you help me understand what I can do in this case?

    
asked by anonymous 18.03.2018 / 08:00

0 answers