ACS APG8201-B2

Felix E. Klee felix.klee at inka.de
Thu Aug 1 03:48:50 CEST 2024


On Tue, Jul 30, 2024 at 12:51 PM Niibe Yutaka <gniibe at fsij.org> wrote:
> Basically, it's case-by-case thingy when we add new (proprietary)
> hardware support around smartcard + card reader. While we have
> standardized CCID protocol, actually, it depends on each card reader
> plus smartcard combination.

Documentation for the commands is in the reference manual:

https://www.acs.com.hk/download-manual/10212/REF-APG8201-B2-1.00.pdf

I guess someone needs to figure out the right commands and add them to
the code. That someone probably should probably be me, but likely not
any time soon.

> I don't know if it still work for newer Python, but I used to use
> this test program for pinpad input:
>
> https://salsa.debian.org/gnuk-team/gnuk/gnuk/-/blob/master/tool/pinpadtest.py?ref_type=heads

Thanks! It does run, but it times out:

    $ sudo ./pinpadtest.py
    Traceback (most recent call last):
      File "/mnt/c/Users/Felix/Downloads/./pinpadtest.py", line 378, in <module>
        main(who, method, add_a_byte, pinmin, pinmax,
change_by_two_steps, fixed)
      File "/mnt/c/Users/Felix/Downloads/./pinpadtest.py", line 224, in main
        card = Card(add_a_byte, pinmin, pinmax, fixed)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/c/Users/Felix/Downloads/./pinpadtest.py", line 58, in __init__
        cardservice = cardrequest.waitforcard()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/smartcard/CardRequest.py",
line 68, in waitforcard
        return self.pcsccardrequest.waitforcard()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/smartcard/pcsc/PCSCCardRequest.py",
line 216, in waitforcard
        raise CardRequestTimeoutException()
    smartcard.Exceptions.CardRequestTimeoutException: Time-out during
card request



More information about the Gnupg-users mailing list