kbpgp icon indicating copy to clipboard operation
kbpgp copied to clipboard

`keybase verify dir kbpgp` returns an error ("public key not found")

Open arielkirkwood opened this issue 11 years ago • 5 comments

Hi,

I wanted to try out some of the command-line features of Keybase, and noticed that you could run keybase dir verify on this project after cloning it. Unfortunately, I'm getting the following output after running that command:

warn: gpg: Signature made Thu Sep 18 10:26:36 2014 EDT
warn: gpg:                using RSA key 980A3F0D01FE04DF
warn: gpg: requesting key 980A3F0D01FE04DF from hkp server 127.0.0.1
warn: gpg: key 6052B2AD31A6631C: rejected by import filter
warn: gpg: Total number processed: 1
warn: [GNUPG:] IMPORT_RES 1 0 0 0 0 0 0 0 0 0 0 0 0 0
warn: [GNUPG:] ERRSIG 980A3F0D01FE04DF 1 10 00 1411050396 9
warn: [GNUPG:] NO_PUBKEY 980A3F0D01FE04DF
warn: gpg: Can't check signature: public key not found
error: `gpg` exited with code 2

My installation of gpg is from Homebrew - here's the output of brew info gpg:

gnupg: stable 1.4.18 (bottled)
http://www.gnupg.org/
/usr/local/Cellar/gnupg/1.4.18 (54 files, 5.3M) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gnupg.rb

arielkirkwood avatar Sep 23 '14 16:09 arielkirkwood

I think the problem is this:

 warn: gpg: key 6052B2AD31A6631C: rejected by import filter

Do you have some stuff in your gpg.conf file? Does it work with the -O option?

keybase -O dir verify kbpgp

maxtaco avatar Sep 23 '14 17:09 maxtaco

I get the same output using keybase -O dir verify kbpgp.

I do also have GPGTools for Mac OS X installed, and it has added some things to my gpg.conf. From my knowledge, it doesn't look like any of them would interfere with this task. Do you know if it's safe to put gpg.conf in a Gist?

arielkirkwood avatar Sep 23 '14 17:09 arielkirkwood

Yes, it's usually safe

maxtaco avatar Sep 23 '14 17:09 maxtaco

Here's my gpg.conf: https://gist.github.com/arielkirkwood/75017299e3f1e31a9035

arielkirkwood avatar Sep 23 '14 18:09 arielkirkwood

Thanks for that.

Well, I can't reproduce it, even with the same version of GnuPG. However, maybe it's a bug in that version? I found this when googling around for your error.

maxtaco avatar Sep 23 '14 21:09 maxtaco