LudovicRousseau / pyscard

pyscard smartcard library for python
http://pyscard.sourceforge.net/
GNU Lesser General Public License v2.1
383 stars 110 forks source link

pyscard and OSX #35

Closed miohtama closed 7 years ago

miohtama commented 7 years ago

I am trying to get pyscard to run under OSX. I have successfully managed to get it run under Linux VM on the same computer using a USB based reader.

However on native OSX I cannot make pyscard to find my reader.

Are there any up-to-date instructions what native dependencies and setup pyscard needs in order to run under OSX (10.11.6).

miohtama commented 7 years ago

This might not be the right forum to ask these questions. But basically I want to figure out

LudovicRousseau commented 7 years ago

First step is to follow https://ludovicrousseau.blogspot.fr/2014/03/level-1-smart-card-support-on-mac-os-x.html

miohtama commented 7 years ago

The reader is picked up by system:

image

But pcsctest doesn't go beyond Testing SCardGetStatusChange:

image

I sent email to the vendor support to see if they can help.

LudovicRousseau commented 7 years ago

Your device should be supported by the CCID driver provided by Apple. Contacting Identive for support is a good idea.

It is not a issue with PySCard. Closing.

miohtama commented 7 years ago

Ok thank you for your kind help.

One more question: How can I check the device CCID and whether it is supported by Apple?

LudovicRousseau commented 7 years ago

macOS Sierra provides CCID driver version 1.4.24 https://ludovicrousseau.blogspot.fr/2016/09/macos-sierra-and-smart-cards-status.html

So any reader supported in version 1.4.24 or earlier should work. https://pcsclite.alioth.debian.org/ccid/release.html is sorted by releaser version.

miohtama commented 7 years ago

@LudovicRousseau you are golden.

miohtama commented 7 years ago

Found my hardware on shouldwork list. Also the driver runs fine on Ubuntu/Debian on the same hardware. Will dig deeper, thanks.

miohtama commented 7 years ago

The issue was solved with a third party driver supplied by Identiv support.

For the records the link to the driver is: http://files.identiv.com/products/smart-card-readers/common-drivers/uTrust_MAC_Driver.zip