Mailing List Archive

"skipped: Unusable public key"
Not obvious to me why that is happening:


ayoub@vboxpwfl:~/testdir$ ls

textfile


ayoub@vboxpwfl:~/testdir$ gpg -r sentry -e textfile

gpg: sentry: skipped: Unusable public key
gpg: textfile: encryption failed: Unusable public key



ayoub@vboxpwfl:~/testdir$ gpg --list-keys

/home/ayoub/.gnupg/pubring.kbx
------------------------------
pub   ed25519 2020-07-09 [SC] [expires: 2020-09-25]
      3C5B212A55B966881E2D2718A45398B520BEE91E
uid           [ultimate] sentry

pub   ed25519 2020-07-09 [SC] [expires: 2021-07-09]
      7A675D7F52BC905C22F8249091556BC29D4C595E
uid           [ultimate] develop1
sub   cv25519 2020-07-09 [E] [expires: 2021-07-09]



ayoub@vboxpwfl:~/testdir$ gpg --list-secret-keys
/home/ayoub/.gnupg/pubring.kbx
------------------------------
sec   ed25519 2020-07-09 [SC] [expires: 2020-09-25]
      3C5B212A55B966881E2D2718A45398B520BEE91E
uid           [ultimate] sentry

sec   ed25519 2020-07-09 [SC] [expires: 2021-07-09]
      7A675D7F52BC905C22F8249091556BC29D4C595E
uid           [ultimate] develop1
ssb   cv25519 2020-07-09 [E] [expires: 2021-07-09]

ayoub@vboxpwfl:~/testdir$


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: "skipped: Unusable public key" [ In reply to ]
It appears that 3C5B212A55B966881E2D2718A45398B520BEE91E does not have the [E] usage for encryption, nor does it have any subkeys with that usage. This subkey would have been created by default when the master key was created. See if you can recover it?

From your prior message on 2020-07-13, it has the ID F2A76096E857E2AF607DD144D17AA44F49BB5A08.

On 2020-07-27T15:52:04-0700 Ayoub Misherghi via Gnupg-users <gnupg-users@gnupg.org> wrote 1.8K bytes:

>
> Not obvious to me why that is happening:
>
>
> ayoub@vboxpwfl:~/testdir$ ls
>
> textfile
>
>
> ayoub@vboxpwfl:~/testdir$ gpg -r sentry -e textfile
>
> gpg: sentry: skipped: Unusable public key
> gpg: textfile: encryption failed: Unusable public key
>
>
>
> ayoub@vboxpwfl:~/testdir$ gpg --list-keys
>
> /home/ayoub/.gnupg/pubring.kbx
> ------------------------------
> pub?? ed25519 2020-07-09 [SC] [expires: 2020-09-25]
> ????? 3C5B212A55B966881E2D2718A45398B520BEE91E
> uid?????????? [ultimate] sentry
>
> pub?? ed25519 2020-07-09 [SC] [expires: 2021-07-09]
> ????? 7A675D7F52BC905C22F8249091556BC29D4C595E
> uid?????????? [ultimate] develop1
> sub?? cv25519 2020-07-09 [E] [expires: 2021-07-09]
>
>
>
> ayoub@vboxpwfl:~/testdir$ gpg --list-secret-keys
> /home/ayoub/.gnupg/pubring.kbx
> ------------------------------
> sec?? ed25519 2020-07-09 [SC] [expires: 2020-09-25]
> ????? 3C5B212A55B966881E2D2718A45398B520BEE91E
> uid?????????? [ultimate] sentry
>
> sec?? ed25519 2020-07-09 [SC] [expires: 2021-07-09]
> ????? 7A675D7F52BC905C22F8249091556BC29D4C595E
> uid?????????? [ultimate] develop1
> ssb?? cv25519 2020-07-09 [E] [expires: 2021-07-09]
>
> ayoub@vboxpwfl:~/testdir$
>
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: "skipped: Unusable public key" [ In reply to ]
If it is not in my machine I do not know where it is. I did not export
it. I did not share it or put on any server.


On 7/27/2020 4:51 PM, Philihp Busby wrote:
> It appears that 3C5B212A55B966881E2D2718A45398B520BEE91E does not have the [E] usage for encryption, nor does it have any subkeys with that usage. This subkey would have been created by default when the master key was created. See if you can recover it?
>
> From your prior message on 2020-07-13, it has the ID F2A76096E857E2AF607DD144D17AA44F49BB5A08.
>
>

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: "skipped: Unusable public key" [ In reply to ]
On Mon, 27 Jul 2020 15:52, Ayoub Misherghi said:

> ayoub@vboxpwfl:~/testdir$ gpg -r sentry -e textfile
>
> gpg: sentry: skipped: Unusable public key
> gpg: textfile: encryption failed: Unusable public key

There is no key with a user id "sentry" which has a key capable of
encryption ([E]). I agree that the diagnostic could be better.


Shalom-Salam,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
Re: "skipped: Unusable public key" [ In reply to ]
Create another subkey with the "Encryption" usage.

This page may help: https://alexcabal.com/creating-the-perfect-gpg-keypair

Don't skip the part about creating backups. You might have a good reason to skip this part, and many people have a lot of good reasons to skip creating a backup, but what most people don't know is that these are actually bad reasons. Create a backup of your keys.

This page may help: https://msol.io/blog/tech/back-up-your-pgp-keys-with-gpg/

On 2020-07-27T17:23:31-0700 Ayoub Misherghi <ayoubhm@gmail.com> wrote 0.5K bytes:

> If it is not in my machine I do not know where it is. I did not export it. I
> did not share it or put on any server.
>
>
> On 7/27/2020 4:51 PM, Philihp Busby wrote:
> > It appears that 3C5B212A55B966881E2D2718A45398B520BEE91E does not have the [E] usage for encryption, nor does it have any subkeys with that usage. This subkey would have been created by default when the master key was created. See if you can recover it?
> >
> > From your prior message on 2020-07-13, it has the ID F2A76096E857E2AF607DD144D17AA44F49BB5A08.
> >
> >

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users