When trying to encrypt files, I get the following error in KGpg editor window:
The encryption failed with error code 2
On the command line I get:
$ gpg --list-keys /home/user/.gnupg/pubring.gpg --------------------------------- pub 2048D/5E04B919 2012-02-02 [expires: 2016-02-01] uid Firstname Lastname <firstname.lastname@example.org> uid [jpeg image of size 4005] $ $ gpg --encrypt file-to-encrypt You did not specify a user ID. (you may use "-r") Current recipients: Enter the user ID. End with an empty line: email@example.com No such user ID.
This used to work both with editor and on the command line with the same key. The
Current recipients: is empty. Why is that?
When trying to specify the user ID on the command line using the
-r option, I get the following:
$ gpg -r firstname.lastname@example.org --encrypt file-to-encrypt gpg: email@example.com: skipped: unusable public key gpg: file-to-encrypt: encryption failed: unusable public key
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.10 Release: 12.10 Codename: quantal $ dpkg -s gnupg Package: gnupg Status: install ok installed Priority: important Section: utils Installed-Size: 1936 Maintainer: Ubuntu Developers <firstname.lastname@example.org> Architecture: amd64 Multi-Arch: foreign Version: 1.4.11-3ubuntu4.4