How to reproduce:
- Insert Yubikey (with OpenPGP app and PIV app enabled)
- Start Kleopatra and open Smartcard Management
- Click on Generate new Keys button (on OpenPGP tab), acknowledge the warning that may be shown, insert the requested information and click OK.
-> Error message "Failed to generate new key: General error" is shown.