Due to problems with my Yubikey NEO, I just ordered a new Yubikey 4. I would like to configure it with Open PGP, and per the documentation here(
https://developers.yubico.com/PGP/Importing_keys.html), started with the following:
>gpg-connect-agent --hex "scd apdu 00 f1 00 00" /bye
But I get the error:
ERR 100663406 Card removed <SCD>
I realize this may be because I have not configured the Open PGP Applet, but am unsure whether best practice is now to do this from the Yubikey Personalization Tool GUI, or using ykpersonalize as indicated on the following page (last updated in 2012):
https://www.yubico.com/2012/12/yubikey-neo-openpgp/ which is only for the NEO (I couldn't find Yubikey 4-specific documentation) and seems to suggest using the command-line ykpersonalize package, which does not seem to be preferred at this point.
In the Yubikey Personalization Tool GUI, however, it is not obvious how and/or where to configure the Open PGP Applet so that I can move a key onto the device.
Suggestions would be most welcome. I am running GPG 2.0.27.