restoring SmartCard key with off-card copy
peter at digitalbrains.com
Tue Sep 27 17:22:45 CEST 2011
On 26/09/11 23:11, Achim Cloer wrote:
> During generating the keys, the pgp card is also generating a off-card copy.
> But we fail to import this backup into OpenPGP.
It's been a while since I played with it, but it worked then. From the man page,
Restore the given file to a card. This command may be used to restore a
backup key (as generated during card initialization) to a new card. In almost
all cases this will be the encryption key. You should use this command only with
the corresponding public key and make sure that the file given as argument is
indeed the backup to restore. You should then select 2 to restore as encryption
key. You will first be asked to enter the passphrase of the backup key and then
for the Admin PIN of the card.
So you can restore the key to the card using that command, after starting the
following from the command prompt:
gpg --edit-key <yourkey>
And the reason you can't import it as a normal secret key, is that the backup is
purely the RSA secret material instead of the bundle of information referred to
as a secret key in OpenPGP.
Your first message made it to the list, by the way.
I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at http://wwwhome.cs.utwente.nl/~lebbing/pubkey.txt
More information about the Gnupg-users