Closed iris-yue-wang closed 5 years ago
Sorry, I don't see what's going wrong. You could add debug code in virtualsmartcard/src/vpicc/virtualsmartcard/cards/Relay.py
.
Alternatively you may use http://frankmorgner.github.io/vsmartcard/pcsc-relay/README.html (something like pcsc-relay --connector=pcsc --emulator=vpcd
)
Thank you very much for your quick reply.
I tried pcsc-relay --connector=pcsc --emulator=vpcd, but I got the following error:
pcsc-relay --connector=pcsc --emulator=vpcd --reader=2
Could not connect to Broadcom Corp 5880 [Contacted SmartCard] (0123456789ABCD) 00 00
Sharing violation.
Without specifying reader number got a different result:
pcsc-relay --connector=pcsc --emulator=vpcd
Card's ATR: 3B 95 13 81 01 80 73 FF 01 00 0B
Address already in use
Could not initialize connection to VPCD
opensc-tool --list-readers shows:
# Detected readers (pcsc)
Nr. Card Features Name
0 No Virtual PCD 00 00
1 No Virtual PCD 00 01
2 Yes Broadcom Corp 5880 [Contacted SmartCard] (0123456789ABCD) 00 00
Could you see anything I have missed?
Also what is the expected behaviour on opensc-explorer when relaying a local smart card? Should we be able to send APDU command in the same way as connecting to a real smart card directly?
Btw, is there any Ubuntu version requirement? I'm using Ubunbu 17.10.
Thanks!
Iris
I've added an option to pcsc-relay to set the atr and fixed the atr in vicc
Expected behaviour
Hi, I tried using vicc -t=relay to relay a local MyEID smart card but I couldn't get it working. I installed both vpcd and vicc on the same Ubuntu machine, without relay, I could use opensc-explorer to send APDU commands to the virtual smart card. I would expect it to work the same with vicc -t=relay relaying a local MyEID smart card.
Actual behaviour
However when I ran opensc-explorer with vicc in relay mode, I got the following error:
pcsc_scan shows the virtual smart card as a memory card, which is strange to me.
Steps to reproduce
Logs
pcsc_scan output of virtual smart card in relay mode:
pcsc_scan output of MyEID card:
Running vicc -t=relay in verbose shows it connected to MyEID smart card:
Is there anything I'm missing here? Is there a list of smart cards vicc -t=relay supports?
Thanks!
Iris