You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to import a private key to the card, enabling import by setting the "DEF_PRIVATE_KEY_IMPORT_ALLOWED" on the master branch & building it using ant with openjdk-17-jdk-headless but I keep getting "Failed to store private key: Card does not support the requested operation".
The command ran is:
I've tried AcosJ 95K, J3H145 and J3R180 cards, but keep getting the same error. I get the feeling I'm missing something, why doesn't this just work, does these cards really all not support private key import?
The text was updated successfully, but these errors were encountered:
Hi, I just tested the key import and it seems to work for me. Can you provide exact reproduction steps and an OPENSC log? The log might contain sensitive data, your PIN etc.
Did you init the card with pkcs15-init --create-pkcs15?
Hello, I'm experiencing the same problem here with a J3H145 card. I built the applet from the V1 branch and I enabled the key import with DEF_PRIVATE_KEY_IMPORT_ALLOWED=true in the source. The applet builds fine and I was able to load the cap without problems. I then used the pkcs15-init --create-pkcs15 to setup the card with the user pin and the puk. I then tried to load a private key with pkcs15-init --store-private-key a4eva.key --label a4eva_key --auth-id 01 --id 01 --pin 000000 but the operation failed with:
Using reader with a card: ACS ACR39U ICC Reader 00 00
Failed to store private key: Card command failed
I do not understand what I'm doing wrong here, I really hope someone can help me a bit
I've been trying to import a private key to the card, enabling import by setting the "DEF_PRIVATE_KEY_IMPORT_ALLOWED" on the master branch & building it using ant with openjdk-17-jdk-headless but I keep getting "Failed to store private key: Card does not support the requested operation".
The command ran is:
I've tried AcosJ 95K, J3H145 and J3R180 cards, but keep getting the same error. I get the feeling I'm missing something, why doesn't this just work, does these cards really all not support private key import?
The text was updated successfully, but these errors were encountered: