Can't initialise a virtual smartcard in PKCS#15 format
Closed this issue · 2 comments
Hi,
We want a virtual smartcard with pin. To get an OpenSC compliant card, we are running:
vicc --hostname a.b.c.d --port 35963 -t cryptoflex
We can see the card with opensc-tool -l
. However, when we try to use pkcs15-init to initialise cryptoflex card with the command:
pkcs15-init --store-pin --label XXXX --id XXXX -r 0
We get an error:
PKCS#15 binding failed: Unsupported card
We get the same error when trying to store a certificate:
pkcs15-init -r 0 -X certificates/certificatePKCS12.p12
Is the cryptoflex virtual card compatible with PKCS#15? If yes, how can we fix this issue?
Are there any other ways to initialise card with PIN and private key/certificate?
Thank you!
Rob and Natalia
It has been long ago since I've used this. I don't plan to look deeper into fixes, but your welcome to make a PR.
You'd be better off, using an emulated Javacard Applet, that's supported by OpenSC, see https://github.com/OpenSC/OpenSC/wiki/Smart-Card-Simulation. This one, https://github.com/arekinath/jcardsim, also works on Linux.
Thank you