A smartcard reader util for Java. Contribute to wnameless/smartcard-reader development by creating an account on GitHub. Import javax.smartcardio.Card; import javax.smartcardio.CardChannel; import javax.smartcardio.CardException; import javax.smartcardio.CommandAPDU; import javax.smartcardio.ResponseAPDU; public class Main { public static void authenticate(Card c) throws. Driver tv tuner advance atv-690 usb tv stick. This error means that there is no such record on the card. With your READ RECORD command 00 B2 01 0C 00 you are trying to read record 1 of the file with the SFI 1. However, the Application File Locator you received in response to the GET PROCESSING OPTIONS command clearly states that only the following records are available on the card: 10 02 03 01: records 2 and 3 in the file with SFI 2 18 01 02 00: records 1 and 2 in the file with SFI 3 18 04 04 00: record 4 in the file with SFI 3 So you can't expect a record 1 in a file with SFI 1 to be present on the card. For that card, you can typically expect to find the PAN in SFI 2 record 2: 00 B2 02 14 00 Also note that the statically coded GPO command you are using will only work for card's with an empty PDOL. Describes an interesting way to access smart cards: via web browser, JavaScript and javax.smartcardio (PC/SC reader). I'm in some doubt as to the usefulness of this. After all, a smart card is a trusted portable device and tying it down (leaving it in the reader connected to a PC) and making it directly accessible to the whole world via the internet (even if the webpage requires authentication) makes no sense. Certainly, you could use this way for a mockup or demo where you need to authenticate directly to some TPM or HSM. But I don't see any commercial use-cases for this yet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |