Yubico Forum
https://forum.yubico.com/

problem with moving 4K RSA primary key to card
https://forum.yubico.com/viewtopic.php?f=35&t=2307
Page 1 of 1

Author:  axel [ Sat May 14, 2016 11:19 pm ]
Post subject:  problem with moving 4K RSA primary key to card

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.

Author:  watersb [ Fri Jun 03, 2016 7:02 pm ]
Post subject:  Re: problem with moving 4K RSA primary key to card

I am trying with GPG 2.1.11 or later, per this information:

http://forum.yubico.com/viewtopic.php?f=35&t=2205&p=8287&hilit=4096#p8287

Author:  watersb [ Sat Jul 02, 2016 5:11 am ]
Post subject:  Re: problem with moving 4K RSA primary key to card

watersb wrote:
I am trying with GPG 2.1.11 or later, per this information:

http://forum.yubico.com/viewtopic.php?f=35&t=2205&p=8287&hilit=4096#p8287


Yes...

I was able to store a 4096-bit key to my Yubikey 4 using GnuPG 2.1.13

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/