LudovicRousseau / pyscard

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

Smart cards can't be recognized from a USB type C port #66

Closed paulchenlyft closed 5 years ago

paulchenlyft commented 5 years ago

Information about your card

  1. Vendor: Gemalto card and smart card reader
  2. Product: Gemalto USB Shell Token
  3. Version: V2

My Macbook has only USB type C which requires an adapter to connect to a smart card reader of USB type A.

Expected behavior I expect ATR and the reader to be found.

Full log Re-run your command with -d -v -i switches $ java -jar gp.jar -d -v -i GlobalPlatformPro 18.09.14-0-gb439b52 Running on Mac OS X 10.13.6 x86_64, Java 11.0.1 by Oracle Corporation

Detected readers from JNA2PCSC

No smart card readers with a card found

Additional context I suspect it is due to the USB type adapter. Since in my old Mac with USB type A, the smart card can be found. Do I need to do anything special to read from USB type C?

Thanks

LudovicRousseau commented 5 years ago

The first step is https://ludovicrousseau.blogspot.com/2014/03/level-1-smart-card-support-on-mac-os-x.html

paulchenlyft commented 5 years ago

Thanks @LudovicRousseau it is working now.