System:
Windows 8.1 (x64)
Gpg 2.1.5
Description:
I installed Gpg 2.1.5 (gnupg-w32-2.1.5_20150611.exe) and tried to list my public
and private keys.
Invoking gpg on command line with "--list-public-keys" shows all my public keys
correctly, while "--list-secret-keys" shows an empty list.
The keyring (with about 50 public and some secret keys) was created with gpg
1.4.? some (long) time ago and hasn't been migrated to 2.1 before.
Before running the following commands no agent/dirmanager was running.
gpg -K --verbose on command line produces the following output:
gpg: starting migration from earlier GnuPG versions
gpg: no running gpg-agent - starting 'C:\Program Files
(x86)\GNU\GnuPG21\bin\gpg-agent.exe'
gpg: waiting for the agent to come up ... (5s)
gpg: waiting for the agent to come up ... (4s)
gpg: connection to agent established
gpg: porting secret keys from
'C:/Users/xxxxx/AppData/Roaming/gnupg/secring.gpg' to gpg-agent
gpg: key A111C47B/A111C47B: error sending to agent: End of file
gpg: error building skey array: End of file
gpg: Note: signature key 7F37F290 expired 01/01/14 12:00:00 Mitteleuropõische Zeit
gpg: error getting the KEK: Input/output error
gpg: error getting the KEK: Input/output error
gpg: error getting the KEK: Input/output error
gpg: error getting the KEK: Input/output error
gpg: error getting the KEK: Input/output error
gpg: error getting the KEK: Input/output error
gpg: error getting the KEK: Input/output error
gpg: error getting the KEK: Input/output error
gpg: error getting the KEK: Input/output error
gpg: migration succeeded
gpg: using PGP trust model
I added the following options to my gpg-agent.conf :
log-file c:/temp/gpg-agent.log
debug 1024
verbose
After running the -K command from above the content of this log file looks like
this:
2015-06-15 15:52:40 gpg-agent[3360] listening on socket
'C:/Users/xxxxx/AppData/Roaming/gnupg/S.gpg-agent'
2015-06-15 15:52:40 gpg-agent[3360] gpg-agent (GnuPG) 2.1.5 started
2015-06-15 15:52:42 gpg-agent[3360] handler 0x2 for fd 360 started
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> OK Pleased to meet you
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- RESET
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> OK
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- OPTION
allow-pinentry-notify
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> OK
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- OPTION
agent-awareness=2.1.0
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> OK
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- AGENT_ID
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> ERR 67109139 Unknown
IPC command <GPG Agent>
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- GETINFO version
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> D 2.1.5
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> OK
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- KEYWRAP_KEY --import
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> [ 44 20 65 cd 29 6c
d6 c5 8f f3 b8 e5 61 0c cb fc ...(2 byte(s) skipped) ]
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> OK
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- SETKEYDESC
Please+enter+the+passphrase+to+import+the+OpenPGP+secret+key:%0A%22Alexander+Strobel+(Giegerich+&+Partner+GmbH)%22%0A4096-bit+RSA+key,+ID+A111C47B,%0Acreated+2015-01-27.%0A
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> OK
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- IMPORT_KEY --unattended
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 -> Confidential data
not shown
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- Confidential data
not shown
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- Confidential data
not shown
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- Confidential data
not shown
2015-06-15 15:52:42 gpg-agent[3360] DBG: chan_00000168 <- Confidential data
not shown
The pinentry is not shown.