keybase / keybase/keybase-issues

Cannot select/import pgp key with elgamal subkey

Open
#1,943 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
899
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Setup is keybase go client on mac osx installed via homebrew.

air:~ andre$ keybase version
Client:  1.0.7-0
Service: 1.0.7-0
air:~ andre$ gpg --version
gpg (GnuPG/MacGPG2) 2.0.28
libgcrypt 1.6.3

I got this key in my keyring:

air:~ andre$ gpg -K
/Users/andre/.gnupg/secring.gpg
-------------------------------
sec   1024D/BBCDCEFB 2005-11-23
uid                  Andre Geddert <andre@geddert.net>
uid                  Andre Geddert <andre.geddert@networklabs.de>
ssb   2048g/D4196920 2005-11-23

Try to select it:

air:~ andre$ keybase pgp select
#    Algo    Key Id             Created   UserId
=    ====    ======             =======   ======
1    1024D   866D78C2BBCDCEFB             Andre Geddert <andre@geddert.net>, Andre Geddert <andre.geddert@networklabs.de>
Choose a key: 1
▶ INFO Bundle unlocked: 866D78C2BBCDCEFB
▶ ERROR key generation error: k.ToLksSKB() error: openpgp: invalid argument: unknown private key type

same problem with import command:

air:~ andre$ cat Desktop/BBCDCEFB.asc | keybase pgp import
▶ ERROR k.ToLksSKB() error: openpgp: invalid argument: unknown private key type

Debug from above command attached:
debug.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the provided GnuPG key using keybase pgp select and keybase pgp import, then read the attached debug.txt around the k.ToLksSKB() error. Trace how the client handles the ElGamal private subkey and verify that both selection and import complete without the unknown private key type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cryptography
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.