When logging in via SmartCard with a YubiKey in PIV mode, ghost certificates sometimes appear – these are old certificates that Windows or applications display, even though they have been replaced.
The reason lies in the structure of the YubiKey: There are up to 24 slots for certificates, including primary slots like 9a for authentication and Retired slots (82 to 95), where old certificates are automatically stored to maintain chains or backups.
When renewing certificates, remnants end up in these Retired slots and become visible through Windows caching, which can lead to multiple login options or errors. Up to 20 Retired certificates are possible.
Prerequisite is the installation of the current version of YubiKey Manager (ykman) which can be downloaded from the Yubico website. The GUI will no longer be available from February 2026, so the command line (CLI) is recommended, which can also be installed without admin rights, e.g. via a INGOS self-service portal.