Can't create or import secret keys: "End of file" error. Possible old bug

Juan Miguel Navarro Martínez juanmi.3000 at gmail.com
Sat Aug 29 22:27:20 CEST 2015


OS: Windows 10 (Build 10240) x64
GnuPG version: 2.1.7

Whenever trying to create a new pair of keys or when importing secret
keys, it ends with End of file error and when using a created gpg-agent
daemon process via CLI it looks like if gpg-agent crashes just at the
end. No secret keys created nor imported but public keys import just fine.

As far as I searched, other GnuPG versions affected were 2.1.1[1,3,5],
2.1.2[4], 2.1.5[2] on Windows versions 8 x64[5], 8.1 with no
architecture given[4] and 8.1 x64[1,2,3]. Versions 2.1.3 and 2.1.4 were
mentioned on Issue 1819[1] with no info of its success.

On my experience, it didn't affect Windows 7 x64 with GnuPG version
either 2.1.1 or 2.1.2, which was when I created my first ECC key, nor
Windows 7 x86 with GnuPG 2.1.7 (just tested on a VM), so the assumption
is it affects all GnuPG 2.1 versions up to 2.1.7 while using a x64-based
Windows version equal or higher than Windows 8. I could try setting up a
Windows 10 x86 VM but it may take a while.

Attached are logs of both creation and importing of keys for both GnuPG
CLI tracing and GPG Agent with some parts skipped or replaced in some
way. I'm fine with creating a shareable secret key for testing and show
the skipped parts if needed.

Also, if this has to be continued on a bug report, should Issue 1819 or
2010 be continued or should it be on a new one?

[1]: https://bugs.gnupg.org/gnupg/issue1819
[2]: https://bugs.gnupg.org/gnupg/issue2010
[3]:
https://www.reddit.com/r/GnuPG/comments/2r37qf/importing_my_private_key_to_gnupg_21_fails/
[4]:
https://www.thunderbird-mail.de/index.php/Thread/69202-Enigmail-PGP-Import-von-privatem-Schl%C3%BCssel-funktioniert-nicht/
[4b]: (Google Translate version) https://goo.gl/PYj7Bh
[5]: https://lists.gnupg.org/pipermail/gnupg-users/2015-January/052100.html

-- 
Juan Miguel Navarro Martínez

GPG Keyfingerprint:
5A91 90D4 CF27 9D52 D62A
BC58 88E2 947F 9BC6 B3CF
-------------- next part --------------
Microsoft Windows [Versión 10.0.10240]
(c) 2015 Microsoft Corporation. Todos los derechos reservados.

C:\Users\Usuario>gpg --debug-all --verbose --import .\Desktop\secrets.key
gpg: Note: no default option file 'C:/Users/Usuario/AppData/Roaming/gnupg/gpg.conf'
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing cardio ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: DBG: fd_cache_open (.\Desktop\secrets.key) not cached
gpg: DBG: iobuf-1.0: open '.\Desktop\secrets.key' fd=440
gpg: DBG: armor-filter: control: 5
gpg: DBG: iobuf-1.1: push 'armor_filter'
gpg: DBG: armor-filter: control: 5
gpg: DBG: iobuf chain: 1.1 'armor_filter' filter_eof=0 start=0 len=0
gpg: DBG: iobuf chain: 1.0 'file_filter(fd)' filter_eof=0 start=0 len=0
gpg: DBG: armor-filter: control: 1
gpg: DBG: iobuf-1.1: underflow: req=8192
gpg: DBG: armor-filter: control: 3
gpg: DBG: iobuf-1.0: underflow: req=8192
gpg: DBG: iobuf-1.0: underflow: got=8192 rc=0
gpg: DBG: iobuf-1.1: underflow: got=430 rc=0
gpg: DBG: parse_packet(iob=1): type=5 length=533 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: iobuf-1.1: underflow: req=8192
gpg: DBG: armor-filter: control: 3
gpg: DBG: iobuf-1.0: underflow: req=8192
gpg: DBG: iobuf-1.0: underflow: got=6147 rc=0
gpg: DBG: iobuf-1.1: underflow: got=8192 rc=0
gpg: DBG: parse_packet(iob=1): type=13 length=55 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=287 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=284 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=576 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=13 length=53 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=13 length=55 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=7 length=1862 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=549 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=7 length=966 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=836 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=5 length=533 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: sec  rsa4096/00000000 2014-11-17   Name <user at domain.tld>
gpg: pub  rsa4096/00000000 2014-11-17  Name <user at domain.tld>
									* * * * * *
gpg: DBG: rsa_verify    => Good
									* * * * * *
gpg: DBG: rsa_verify    => Good
									* * * * * *
gpg: DBG: rsa_verify    => Good
									* * * * * *
gpg: DBG: rsa_verify    => Good
									* * * * * *
gpg: DBG: rsa_verify    => Good
									* * * * * *
gpg: DBG: rsa_verify    => Good
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search enter
gpg: DBG: keydb_search: mode=fpr  (hd=0x0265baa8)
gpg: DBG: [not enabled in the source] keydb_search leave (not found)
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search_reset
gpg: DBG: keydb_search: reset  (hd=0x0265cae8)
gpg: DBG: keydb: kid_not_found_flush
gpg: DBG: build_packet() type=6
gpg: DBG: iobuf-3.0: close '?'
gpg: DBG: build_packet() type=13
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-4.0: close '?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-5.0: close '?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-6.0: close '?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-7.0: close '?'
gpg: DBG: build_packet() type=13
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-8.0: close '?'
gpg: DBG: build_packet() type=13
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-9.0: close '?'
gpg: DBG: build_packet() type=14
gpg: DBG: iobuf-10.0: close '?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-11.0: close '?'
gpg: DBG: build_packet() type=14
gpg: DBG: iobuf-12.0: close '?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-13.0: close '?'
gpg: DBG: iobuf-2.0: close '?'
gpg: C:/Users/Usuario/AppData/Roaming/gnupg/trustdb.gpg: trustdb created
gpg: using PGP trust model
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search enter
gpg: DBG: keydb_search: mode=fpr  (hd=0x0265d308)
gpg: DBG: [not enabled in the source] keydb_search leave (found)
gpg: DBG: [not enabled in the source] keydb_get_keybock enter
gpg: DBG: parse_packet(iob=14): type=6 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=13 length=55 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=2 length=287 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=2 length=284 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=2 length=576 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=13 length=53 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=13 length=55 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=14 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=2 length=549 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=14 length=269 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=14): type=2 length=836 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: [not enabled in the source] keydb_get_keyblock leave
gpg: DBG: iobuf-15.0: close '?'
									* * * * * *
gpg: DBG: rsa_verify    => Good
gpg: DBG: finish_lookup: checking key 00000000 (one)(req_usage=0)
gpg: DBG:       using key 00000000
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: key 00000000: public key "Name <user at domain.tld>" imported
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=14
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search enter
gpg: DBG: keydb_search: mode=long_kid  (hd=0x0265c2c8) 0000000000000000
gpg: DBG: keydb: kid_not_found_p (0000000000000000) => false
gpg: DBG: iobuf-14.0: close '?'
gpg: DBG: keydb: kid_not_found_insert (0000000000000000, 1)
gpg: DBG: [not enabled in the source] keydb_search leave (found)
gpg: DBG: [not enabled in the source] keydb_get_keybock enter
gpg: DBG: parse_packet(iob=16): type=6 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=13 length=55 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=2 length=287 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=2 length=284 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=2 length=576 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=13 length=53 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=13 length=55 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=14 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=2 length=549 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=14 length=269 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=16): type=2 length=836 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: iobuf-16.0: close '?'
gpg: DBG: [not enabled in the source] keydb_get_keyblock leave
gpg: DBG: iobuf-17.0: close '?'
									* * * * * *
gpg: DBG: finish_lookup: checking key 00000000 (all)(req_usage=0)
gpg: DBG:       using key 00000000
gpg: DBG: cache_user_id: already in cache
gpg: DBG: chan_000001C4 <- OK Pleased to meet you
gpg: DBG: connection to agent established
gpg: DBG: chan_000001C4 -> RESET
gpg: DBG: chan_000001C4 <- OK
gpg: DBG: chan_000001C4 -> OPTION allow-pinentry-notify
gpg: DBG: chan_000001C4 <- OK
gpg: DBG: chan_000001C4 -> OPTION agent-awareness=2.1.0
gpg: DBG: chan_000001C4 <- OK
gpg: DBG: chan_000001C4 -> AGENT_ID
gpg: DBG: chan_000001C4 <- ERR 67109139 Unknown IPC command <GPG Agent>
gpg: DBG: chan_000001C4 -> KEYWRAP_KEY --import
gpg: DBG: chan_000001C4 <- [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...(2 byte(s) skipped) ]
gpg: DBG: chan_000001C4 <- OK
gpg: DBG: chan_000001C4 -> SETKEYDESC Please+enter+the+passphrase+to+import+the+OpenPGP+secret+key:%0A%22Name+<user at domain.tld>%22%0A4096-bit+RSA+key,+ID+11111111,%0Acreated+2014-11-17+(main+key+ID+00000000).%0A
gpg: DBG: chan_000001C4 <- OK
gpg: DBG: chan_000001C4 -> IMPORT_KEY
gpg: DBG: chan_000001C4 <- INQUIRE KEYDATA
gpg: DBG: chan_000001C4 -> [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...(982 byte(s) skipped) ]
gpg: DBG: chan_000001C4 -> [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...(982 byte(s) skipped) ]
gpg: DBG: chan_000001C4 -> [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...(24 byte(s) skipped) ]
gpg: DBG: chan_000001C4 -> END
gpg: DBG: chan_000001C4 <- [eof]
gpg: key 00000000/11111111: error sending to agent: End of file
gpg: error building skey array: End of file
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=5
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=7
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=7
gpg: DBG: free_packet() type=2
gpg: DBG: parse_packet(iob=1): type=13 length=50 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: iobuf-1.1: underflow: req=8192
gpg: DBG: armor-filter: control: 3
gpg: DBG: iobuf-1.0: underflow: req=8192
gpg: DBG: iobuf-1.0: underflow: got=0 rc=-1
gpg: DBG: .\Desktop\secrets.key: close fd/handle 440
gpg: DBG: fd_cache_close (.\Desktop\secrets.key) new slot created
gpg: DBG: iobuf-1.0: underflow: eof
gpg: DBG: iobuf-1.1: underflow: got=5717 rc=0
gpg: DBG: parse_packet(iob=1): type=7 length=1854 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=549 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=7 length=1854 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: parse_packet(iob=1): type=2 length=1092 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/import.c.545)
gpg: DBG: iobuf-1.1: underflow: req=8192
gpg: DBG: armor-filter: control: 3
gpg: DBG: iobuf-1.0: underflow: eof (due to filter eof)
gpg: DBG: iobuf-1.1: underflow: got=0 rc=-1
gpg: DBG: armor-filter: control: 2
gpg: DBG: iobuf-1.1: pop in underflow (!len)
gpg: DBG: iobuf chain: 1.0 '[none]' filter_eof=0 start=6147 len=6147
gpg: DBG: iobuf-1.0: underflow: eof
gpg: sec  rsa4096/22222222 2015-07-26   Name2 <user2 at domain.tld>
gpg: pub  rsa4096/22222222 2015-07-26  Name2 <user2 at domain.tld>
									* * * * * *
gpg: DBG: rsa_verify    => Good
									* * * * * *
gpg: DBG: rsa_verify    => Good
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search enter
gpg: DBG: keydb_search: mode=fpr  (hd=0x0265d510)
gpg: DBG: [not enabled in the source] keydb_search leave (not found)
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search_reset
gpg: DBG: keydb_search: reset  (hd=0x0265c0c0)
gpg: DBG: keydb: kid_not_found_flush
gpg: DBG: build_packet() type=6
gpg: DBG: iobuf-19.0: close '?'
gpg: DBG: build_packet() type=13
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-20.0: close '?'
gpg: DBG: build_packet() type=14
gpg: DBG: iobuf-21.0: close '?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-22.0: close '?'
gpg: DBG: build_packet() type=14
gpg: DBG: iobuf-23.0: close '?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-24.0: close '?'
gpg: DBG: iobuf-18.0: close '?'
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search enter
gpg: DBG: keydb_search: mode=fpr  (hd=0x0265c4d0)
gpg: DBG: [not enabled in the source] keydb_search leave (found)
gpg: DBG: [not enabled in the source] keydb_get_keybock enter
gpg: DBG: parse_packet(iob=25): type=6 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=25): type=13 length=50 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=25): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=25): type=14 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=25): type=2 length=549 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=25): type=14 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=25): type=2 length=1092 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: [not enabled in the source] keydb_get_keyblock leave
gpg: DBG: iobuf-26.0: close '?'
									* * * * * *
gpg: DBG: rsa_verify    => Good
gpg: DBG: finish_lookup: checking key 22222222 (one)(req_usage=0)
gpg: DBG:       using key 22222222
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: key 22222222: public key "Name2 <user2 at domain.tld>" imported
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=14
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search enter
gpg: DBG: keydb_search: mode=long_kid  (hd=0x0265c8e0) 2222222222222222
gpg: DBG: keydb: kid_not_found_p (2222222222222222) => false
gpg: DBG: iobuf-25.0: close '?'
gpg: DBG: keydb: kid_not_found_insert (2222222222222222, 1)
gpg: DBG: [not enabled in the source] keydb_search leave (found)
gpg: DBG: [not enabled in the source] keydb_get_keybock enter
gpg: DBG: parse_packet(iob=27): type=6 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=27): type=13 length=50 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=27): type=2 length=573 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=27): type=14 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=27): type=2 length=549 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=27): type=14 length=525 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: parse_packet(iob=27): type=2 length=1092 (parse./home/wk/b-w32/speedo/gnupg-w32-2.1.7/g10/keydb.c.946)
gpg: DBG: iobuf-27.0: close '?'
gpg: DBG: [not enabled in the source] keydb_get_keyblock leave
gpg: DBG: iobuf-28.0: close '?'
									* * * * * *
gpg: DBG: rsa_verify    => Good
gpg: DBG: finish_lookup: checking key 22222222 (all)(req_usage=0)
gpg: DBG:       using key 22222222
gpg: DBG: cache_user_id: already in cache
gpg: DBG: chan_000001C4 -> KEYWRAP_KEY --import
gpg: error getting the KEK: Input/output error
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=5
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=7
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=7
gpg: DBG: free_packet() type=2
gpg: DBG: iobuf-1.0: underflow: eof (no filter)
gpg: DBG: iobuf-1.0: close '?'
gpg: DBG: iobuf-*.*: ioctl '.\Desktop\secrets.key' invalidate
gpg: DBG: fd_cache_invalidate (.\Desktop\secrets.key)
gpg: DBG:                 did (.\Desktop\secrets.key)
gpg: Total number processed: 5
gpg:               imported: 2
gpg:       secret keys read: 5
gpg: DBG: [not enabled in the source] keydb_new
gpg: 0 keys processed (0 validity counts cleared)
gpg: no ultimately trusted keys found
gpg: DBG: [not enabled in the source] stop
gpg: keydb: kid_not_found_table: total: 1
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: secmem usage: 0/32768 bytes in 0 blocks

C:\Users\Usuario>
-------------- next part --------------
2015-08-29 03:15:38 gpg-agent[3656] listening on socket 'C:\Users\Usuario\AppData\Roaming\gnupg\S.gpg-agent'
2015-08-29 03:15:38 gpg-agent[3656] gpg-agent (GnuPG) 2.1.7 started
2015-08-29 03:16:10 gpg-agent[3656] handler 0x2 for fd 476 started
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> OK Pleased to meet you
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- RESET
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> OK
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- OPTION allow-pinentry-notify
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> OK
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- OPTION agent-awareness=2.1.0
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> OK
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- AGENT_ID
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> ERR 67109139 Unknown IPC command <GPG Agent>
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- KEYWRAP_KEY --import
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...(2 byte(s) skipped) ]
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> OK
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- SETKEYDESC Please+enter+the+passphrase+to+import+the+OpenPGP+secret+key:%0A%22Name+<user at domain.tld>%22%0A4096-bit+RSA+key,+ID+11111111,%0Acreated+2014-11-17+(main+key+ID+00000000).%0A
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> OK
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- IMPORT_KEY
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC -> [[Confidential data not shown]]
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- [[Confidential data not shown]]
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- [[Confidential data not shown]]
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- [[Confidential data not shown]]
2015-08-29 03:16:10 gpg-agent[3656] DBG: chan_000001DC <- [[Confidential data not shown]]
-------------- next part --------------
Microsoft Windows [Versión 10.0.10240]
(c) 2015 Microsoft Corporation. Todos los derechos reservados.

C:\Users\Usuario>gpg --debug-level guru --verbose --full-gen-key
gpg (GnuPG) 2.1.7; Copyright (C) 2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing cardio ipc clock lookup extprog
Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Requested keysize is 2048 bits
Please specify how long the key should be valid.
         0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0)
Key does not expire at all
Is this correct? (y/N) y

GnuPG needs to construct a user ID to identify your key.

Real name: Testing
Email address: test at doma.in
Comment:
You selected this USER-ID:
    "Testing <test at doma.in>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: DBG: [not enabled in the source] start
gpg: DBG: chan_000001A4 <- OK Pleased to meet you
gpg: DBG: connection to agent established
gpg: DBG: chan_000001A4 -> RESET
gpg: DBG: chan_000001A4 <- OK
gpg: DBG: chan_000001A4 -> OPTION allow-pinentry-notify
gpg: DBG: chan_000001A4 <- OK
gpg: DBG: chan_000001A4 -> OPTION agent-awareness=2.1.0
gpg: DBG: chan_000001A4 <- OK
gpg: DBG: chan_000001A4 -> AGENT_ID
gpg: DBG: chan_000001A4 <- ERR 67109139 Unknown IPC command <GPG Agent>
gpg: DBG: chan_000001A4 -> RESET
gpg: DBG: chan_000001A4 <- OK
gpg: DBG: chan_000001A4 -> GENKEY
gpg: DBG: chan_000001A4 <- S INQUIRE_MAXLEN 1024
gpg: DBG: chan_000001A4 <- INQUIRE KEYPARAM
gpg: DBG: chan_000001A4 -> D (genkey(rsa(nbits 4:2048)))
gpg: DBG: chan_000001A4 -> END
gpg: DBG: chan_000001A4 <- INQUIRE PINENTRY_LAUNCHED 2936
gpg: DBG: chan_000001A4 -> END
gpg: DBG: chan_000001A4 <- INQUIRE PINENTRY_LAUNCHED 2828
gpg: DBG: chan_000001A4 -> END
gpg: DBG: chan_000001A4 <- [eof]
gpg: agent_genkey failed: End of file
Key generation failed: End of file
gpg: DBG: [not enabled in the source] stop
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: secmem usage: 1344/32768 bytes in 2 blocks

C:\Users\Usuario>
-------------- next part --------------
2015-08-29 03:22:30 gpg-agent[2204] listening on socket 'C:\Users\Usuario\AppData\Roaming\gnupg\S.gpg-agent'
2015-08-29 03:22:30 gpg-agent[2204] gpg-agent (GnuPG) 2.1.7 started
2015-08-29 03:23:25 gpg-agent[2204] handler 0x2 for fd 476 started
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> OK Pleased to meet you
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- RESET
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> OK
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- OPTION allow-pinentry-notify
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> OK
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- OPTION agent-awareness=2.1.0
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> OK
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- AGENT_ID
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> ERR 67109139 Unknown IPC command <GPG Agent>
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- RESET
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> OK
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- GENKEY
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> S INQUIRE_MAXLEN 1024
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> INQUIRE KEYPARAM
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- D (genkey(rsa(nbits 4:2048)))
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- END
2015-08-29 03:23:25 gpg-agent[2204] starting a new PIN Entry
2015-08-29 03:23:25 gpg-agent[2204] DBG: connection to PIN entry established
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC -> INQUIRE PINENTRY_LAUNCHED 2936
2015-08-29 03:23:25 gpg-agent[2204] DBG: chan_000001DC <- END
2015-08-29 03:23:28 gpg-agent[2204] starting a new PIN Entry
2015-08-29 03:23:28 gpg-agent[2204] DBG: connection to PIN entry established
2015-08-29 03:23:28 gpg-agent[2204] DBG: chan_000001DC -> INQUIRE PINENTRY_LAUNCHED 2828
2015-08-29 03:23:28 gpg-agent[2204] DBG: chan_000001DC <- END
					* * * * * *
2015-08-29 03:23:33 gpg-agent[2204] DBG: storing private key
2015-08-29 03:23:33 gpg-agent[2204] S2K calibration: 3847168 -> 93ms
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20150829/c2621636/attachment-0001.sig>


More information about the Gnupg-users mailing list