Page MenuHome GnuPG

Kleopatra: Brainpool key can not be moved to smart card
Closed, ResolvedPublic


Moving a (VS-NfD compliant) Brainpool key is not possible with Kleopatra. The option "Transfer to smartcard" is greyed out.
Moving the same key on the command line works fine. (At least if the card is empty beforehand.)



Event Timeline

Which algorithms are offered when you use "Regenerate Key"? What's the output of gpg -K --with-colon <key_id>?

werner triaged this task as High priority.Feb 17 2023, 7:54 AM

I'm sorry, I got a bit confused, it works in Kleopatra on 3.2.0, but not in 3.2.26

On 3.2.0 for "Regenerate Key" and "Generate Key" 7 algorithms are offered (one to many?):

On 3.1.26, only RSA Algorithms are offered:

This is on 3.1.26 after I moved the first subkey to the card via command line keytocard:

gpg -K --with-colon 595E61FF0929ED7584BA140D13B6ADCFDDDC9206

If 3.1.26 only offers RSA algos, then Kleopatra obviously assumes that the smart card only supports RSA and therefore doesn't offer the transfer of Brainpool keys.

We got a user report that the issue did not occur before their update from 3.1.25 to 3.1.26

It effects Yubikeys and ZeitControl cards (version 3.4)

ikloecker changed the task status from Open to Testing.Mar 16 2023, 10:43 AM
ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

I think Werner backported some missing functionality to GnuPG 2.2. Please retest with the next version.

ebo claimed this task.

For Testversion for "Regenerate key" now the same algorithms as in 3.2.0 are offered for a Yubikey and it is possible to move them to the smart card.
This is fine even for not VSD-compliant keys, as they are marked as such.

For ZeitControl card (version 3.4) it is not possible to move 25519 keys to the card, as the card does not support it.

ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 5 2023, 1:51 PM