frankmorgner / vsmartcard

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

PCSC-relay on Mac #278

Open prsinghgit opened 4 months ago

prsinghgit commented 4 months ago

I was reviewing the documentation for pcsc-relay and considering initiating vpcd through a launch daemon using the command pcsc-relay --emulator vpcd. This setup would allow VPCD to manage the ports, enabling smartphones to connect and transmit APDU commands over the port. My goal is to remove the necessity of using USB on Mac to activate the smart card driver.

frankmorgner commented 4 months ago

If you install vpcd on your mac (and trigger system integration with a USB device), then vpcd is integrated into the macOS infrastructure for security tokens (i.e. PC/SC, CTK, possibly Keychain, ...). If you do the same via pcsc-relay, it will not be integrated into the system, but it will only connect the two ends that you are specifying (i.e. connector and emulator).

What exactly are you trying to do?

prsinghgit commented 4 months ago

Thank yo so much for reply, SO I am able to build PCSC relay on Mac device, but it is not getting any smart card reader(As you already mentioned in answer), How can it be integrated to the Mac system without using USB?

SO here is my requirement - I want to use mobile as smart card without attaching any USB to mac device

frankmorgner commented 4 months ago

That will not work with pcsc-relay. You need to install vpcd on your mac:

contactless card <--> remote reader app (mobile) <--> vpcd (macOS) <--> macOS App (e.g. Keychain, Chrome, Outlook)

on the mac, you need some USB device to start vpcd, e.g. a USB key board, as described here http://frankmorgner.github.io/vsmartcard/virtualsmartcard/README.html#building-and-installing-vpcd-on-mac-os-x