frankmorgner / vsmartcard

umbrella project for emulation of smart card readers or smart cards
http://frankmorgner.github.io/vsmartcard/
712 stars 200 forks source link

Request for information to enroll a User Certificate and Private key into the Virtual smart Card #280

Open monojeets opened 3 months ago

monojeets commented 3 months ago

I am looking for some information or pointers on how can i enroll a User Certificate and a Private Key into the VSC so that it can be used for Authentication.

I have successfully configured and started VPCD and VICC. I can see the VSC is now inserted into the virtual reader. host@host:~$ pcsc_scan Using reader plug'n play mechanism Scanning present readers... 0: Virtual PCD 00 00 1: Virtual PCD 00 01

Fri Jun 14 00:54:28 2024 Reader 0: Virtual PCD 00 00 Event number: 1 Card state: Card inserted, ATR: 3B 95 13 81 01 80 73 FF 01 00 0B

ATR: 3B 95 13 81 01 80 73 FF 01 00 0B

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt): 3B 95 13 81 01 80 73 FF 01 00 0B vsmartcard - iso7816 (Other) https://frankmorgner.github.io/vsmartcard/

Would anyone have any pointers on how can i now enroll Cert and Private Key into this VSC? I think i need to use APDU commands but a little more details on the smart card structure or any other documentation will be really helpful.

Any help appreciated.

Thanks

frankmorgner commented 3 months ago

See