I have a 4096bits primary key with two 2048 bits subkeys. I want to move the whole shebang to my yubikey 4. I migrated the subkeys without a major problem, but the primary key migration fails:
Code:
gpg> keytocard
Really move the primary key? (y/N) y
Signature key ....: xxxxx
Encryption key....: xxxxx
Authentication key: [none]
Please select where to store the key:
(1) Signature key
(3) Authentication key
Your selection? 3
You need a passphrase to unlock the secret key for
user: xxxxxx
4096-bit RSA key, ID xxxxx, created xxxxxx
<admin pin is asked here, I give it>
gpg: error writing key to card: Invalid value
The primary key is 4096 RSA with SCA capability.