<div>-------- Original Message --------<br></div><div>Subject: Re: Obtaining Key Stubs From Smartcard<br></div><div>Local Time: January 4, 2018 4:27 AM<br></div><div>UTC Time: January 4, 2018 10:27 AM<br></div><div>From: <a href="mailto:peter@digitalbrains.com">peter@digitalbrains.com</a><br></div><div>To: Bagel Alderman <<a href="mailto:bagel.alderman@protonmail.com">bagel.alderman@protonmail.com</a>>, <a href="mailto:gnupg-users@gnupg.org">gnupg-users@gnupg.org</a> <<a href="mailto:gnupg-users@gnupg.org">gnupg-users@gnupg.org</a>><br></div><div><br></div><div>>Could you post commands entered and their result? We can't tell what goes wrong just by this description.<br></div><div><br></div><div>Command entered(Ubuntu 16.04):<br></div><div><br></div><div>gpg2 --card-status<br></div><div><br></div><div>Result (some card data replaced with "<data>"):<br></div><div><br></div><div>Reader............: Yubico Yubikey NEO OTP U2F CCID 00 00<br></div><div>Application ID....: D2760001240102000006053043400000<br></div><div>Version...........: 2.0<br></div><div>Manufacturer......: Yubico<br></div><div>Serial number.....: <data><br></div><div>Name of cardholder: <data><br></div><div>Language prefs....: en<br></div><div>Sex...............: unspecified<br></div><div>URL of public key.: ''<br></div><div>Login data........: <data><br></div><div>Signature PIN.....: forced<br></div><div>Key attributes....: rsa2048 rsa2048 rsa2048<br></div><div>Max. PIN lengths..: 127 127 127<br></div><div>PIN retry counter.: 3 3 3<br></div><div>Signature counter.: 20<br></div><div>Signature key.....: <data><br></div><div>created...: 2018-01-02 20:50:36<br></div><div>Encryption key....: <data><br></div><div>created...: 2018-01-02 20:51:07<br></div><div>Authentication key: <data><br></div><div>created...: 2018-01-02 20:51:31<br></div><div>General key info..: [none]<br></div><div><br></div><div>After that, I run<br></div><div><br></div><div>gpg2 -K<br></div><div><br></div><div>to confirm I don't have stubs for the keys on the card.<br></div><div><br></div><div>>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.<br></div><div> <br></div><div>Good to know, thanks.<br></div><div><br></div><div>Please let me know if there's anything else I can check that'd be useful for diagnosing this. I appreciate your help.<br></div>