Hello,
I have a Nitrokey 3C NFC with (and i am on debian 12) the firmware 1.8.1. I want to import a pkcs#12 file (within a private key rsa 4096). Is it possible or is it available only for nitrokey HSM ?
I init piv ; write-certificate successfully for the .crt file in the slot 9c but cannot do the same for the .key file. Is there another workaround ? with pkcs11-tool ?
Thks a lot by advance
EDIT : I try with v1.8.2-test.20250416 but i don’t know how import a .key file or .p12
This should be possible for the OpenPGPCard on the Nitrokey 3.
Make sure the se050 secure element is activated (only applies if your NK3 is older, should be activated by default)
OpenSC is mostly choosing the PIV Smartcard instead of the OpenPGPCard by default - so either:
tell OpenSC to use the correct smartcard, by setting the following env variable: export OPENSC_DRIVER=openpgp
disable the PIV smartcard: nitropy nk3 set-config piv.disabled true
Then using something like these instructions should allow you importing a key. (also make sure gpg or some gpg-agent are not blocking the smartcard comms).