gpg crashes when attempting to write a key to a card
Closed, WontfixPublic


I've tried to generate a key on a card (yubikey 4) and when gpg was about to
write the key to the card, it crashed with this error

gpg: app-openpgp.c :2271 : build_privkey_template: assertion « rsa_e_len <=
rsa_e_reqlen » failed.


baptistemm set Version to 1.4.21.Oct 6 2016, 4:15 AM
baptistemm set External Link to
baptistemm added a subscriber: baptistemm.
gniibe claimed this task.Nov 30 2016, 3:12 AM
gniibe added a subscriber: gniibe.
gniibe removed a project: gnupg.Apr 11 2017, 3:25 AM

Please use GnuPG 2 (2.0 or 2.1) for using smartcard/token.
smartcard support in GnuPG 1.4 is way old and only supports shorter key length.

werner added a subscriber: werner.Oct 20 2017, 12:56 PM

I would suggest to close this as won't fix.

gniibe closed this task as Wontfix.Oct 24 2017, 2:21 AM

GnuPG 1.4 is only for old features. New features are only supported by GnuPG 2.2.