<div>I've been trying to learn to use GnuPG and have hit a spot of trouble. My goal is to set up an off-line master key with a sub-key each for signing, encryption and authentication, and to keep the sub-keys on a smart card (Yubikey) for convenient use.</div><div>To prepare for the inevitable moment I destroy/lose my Yubikey, I want to keep a copy of my sub-keys on my backup Yubikey as well. So far I have been able to manage this by using keytocard, deleting the local stubs, and importing the sub-keys from a backup. Using this method, the most recent Yubikey to have keys moved to it is listed as the key which contains the sub-keys.<br></div><div>My concern is this: If I do lose my Yubikey, I wont be able to use my backup Yubikey without first deleting current stubs, importing my backup sub-keys, and keytocard-ing them to the backup Yubikey, since my machine thinks the stubs only exist on the lost/destroyed smart card.<br></div><div>I've heard several say that the workaround is to use gpg --card-status to create key stubs from the currently inserted smart card, but so far I haven't had any luck getting that to work, neither on my Ubuntu machine or my Windows 7 box.<br></div><div><br></div><div>Can anyone tell me why gpg --card-status isn't creating key stubs (even after  the original stubs are deleted)? It displays card information, but that seems to be all it does.<br></div><div><br></div><div>Ubuntu 16.04 using GnuPG v2.1.11 installed/updated with apt<br></div><div>Windows 7 using GnuPG v2.2.3 via gpg4win<br></div><div><br></div>