Obtaining Key Stubs From Smartcard

Bagel Alderman bagel.alderman at protonmail.com
Thu Jan 4 17:56:41 CET 2018


-------- Original Message --------
Subject: Re: Obtaining Key Stubs From Smartcard
Local Time: January 4, 2018 4:27 AM
UTC Time: January 4, 2018 10:27 AM
From: peter at digitalbrains.com
To: Bagel Alderman <bagel.alderman at protonmail.com>, gnupg-users at gnupg.org <gnupg-users at gnupg.org>

>Could you post commands entered and their result? We can't tell what goes wrong just by this description.

Command entered(Ubuntu 16.04):

gpg2 --card-status

Result (some card data replaced with "<data>"):

Reader............: Yubico Yubikey NEO OTP U2F CCID 00 00
Application ID....: D2760001240102000006053043400000
Version...........: 2.0
Manufacturer......: Yubico
Serial number.....: <data>
Name of cardholder: <data>
Language prefs....: en
Sex...............: unspecified
URL of public key.: ''
Login data........: <data>
Signature PIN.....: forced
Key attributes....: rsa2048 rsa2048 rsa2048
Max. PIN lengths..: 127 127 127
PIN retry counter.: 3 3 3
Signature counter.: 20
Signature key.....: <data>
created...: 2018-01-02 20:50:36
Encryption key....: <data>
created...: 2018-01-02 20:51:07
Authentication key: <data>
created...: 2018-01-02 20:51:31
General key info..: [none]

After that, I run

gpg2 -K

to confirm I don't have stubs for the keys on the card.

>By the way, a quicker method than using keytocard, deleting the local stubs, and importing the sub-keys from a backup is using keytocard and then not saving the changes. That way, the key is both on the card and on disk.

Good to know, thanks.

Please let me know if there's anything else I can check that'd be useful for diagnosing this. I appreciate your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20180104/723252cb/attachment.html>


More information about the Gnupg-users mailing list