gpgsm doesn't recognize certs are related to secret keys

Werner Koch wk at
Wed Mar 14 09:20:27 CET 2007

On Tue, 13 Mar 2007 23:41, me at said:

> $ gpgsm --list-secret-keys
> /home/psmay/.gnupg/pubring.kbx
> ----------------------------
> $

There might be a problem with the gpg-agent.  Make sure that gpg-agent
is running and add 

debug 1024
log-file /for/bar/agent.log

to gpg-agent.conf.  Give a running gpg-agent a HUP or start it again.
You may also use

  gpg-agent --daemon  sh

and do your test within this shell.  You should see lines like

  DBG: <- HAVEKEY D6B7B913F20010E8A68DC14B7B72C296C79C773A
  DBG: -> ERR 67108881 No secret key <GPG Agent>
  DBG: <- HAVEKEY 0DEB2ED35B879151B1EDA067B0F290116C7915EB
  DBG: -> OK

No OK lines?  Run 

  gpgsm  --dump-keys 

which will show you the keygrip. The keygrip is what you see in the
gpg-agent requests and they are also the basenames of the files below



More information about the Gnupg-users mailing list