smartcard

How to disable Winscard Discovery in Windows 10?

荒凉一梦 提交于 2019-12-19 03:46:12
问题 I'm testing smart cards using ACR122U. However, when I put a card on it, Windows will automatically send APDU commands to it. According to the question windows 8 disable smartcard plug and play, I disabled Smart Card Plug And Play. But I can still see the PIV selection which is called Winscard Discovery. How can I disable this in Windows 10? 回答1: You have 3 solutions 1) Edit computer policies Launch gpedit.msc Section Computer Configuration --> Administrative Templates --> Windows Components

SCardTransmit() always return 6d00

十年热恋 提交于 2019-12-18 12:43:39
问题 I'm trying to read name, card number, expiry date etc on Credit Card. but always return 6d00 when call SCardTransmit . I'm using pre-define AID, which i have googled to be valid (correct me if i'm wrong). here's the are : AID_LIST = { "A0000000421010", "A0000000422010", "A0000000031010", "A0000000032010", "A0000000041010", "A0000000042010", "A00000006900", "A0000001850002" } Thanks in advance. 回答1: I am not familiar with this API you are using, but you will have to send the following sequence

Symptoms of EEPROM damage

こ雲淡風輕ζ 提交于 2019-12-18 12:39:12
问题 Suppose there is a bug in a Java Card applet: a temporary byte array is stored in EEPROM instead of RAM. Moreover, suppose this byte array is overwritten with each APDU. This bug should damage the card sooner or later. What symptoms could we expect? Incorrect values in the array without any explicit warnings or errors? Some exceptions thrown when accessing this array? The applet unselectable? The whole card completely unresponsive? Should the card be damaged "once and forever", or will these

Contact-less card through an OmniKey, how to get “UID”?

青春壹個敷衍的年華 提交于 2019-12-18 11:34:41
问题 I am trying to read information off of a smartcard, using a contact-less OmniKey 5321 card reader. Edit : Added a bounty. I'm writing a C# 3 in .NET 3.5 program, so this is a Windows application. The card has some information stamped onto it, that I would assume, in some way, is present in the card data (there is a photo of the card and reader below.) The card has the following information stamped onto it: 1* 00447 21091328-32 When using the Diagnostics application that comes with the OmniKey

SSL Client Authentication with smart card works in Java 6 but fails in Java 7

倖福魔咒の 提交于 2019-12-18 10:46:19
问题 the following code creates a client authenticated SSL context using PKCS#11 device (smart card). It all works great with Java 6: // Configure the SunPkcs11 provider String pkcs11config; pkcs11config = "name = Cryptoki"; pkcs11config += "\nlibrary = /SCDriver/libbit4ipki.dylib"; InputStream confStream = new ByteArrayInputStream(pkcs11config.getBytes()); SunPKCS11 sunpkcs11 = new SunPKCS11(confStream); Security.addProvider(sunpkcs11); // Specify keystore builder parameters for PKCS#11 keystores

Accessing javax.smartcardio from Linux 64 bits

感情迁移 提交于 2019-12-18 10:37:21
问题 I'm trying to load the smartcard terminals using the javax.smartcardio API with the following code: public CardTerminal getReadyCardTerminal() throws CardException { TerminalFactory factory = TerminalFactory.getDefault(); CardTerminals terminals = factory.terminals(); List<CardTerminal> list = terminals.list(State.CARD_PRESENT); while (list.isEmpty()) { terminals.waitForChange(1000); list = terminals.list(State.CARD_PRESENT); } CardTerminal cardTerminal = list.get(0); return cardTerminal; } .

AID of JCOP's Security Domain and meaning of “Card Not Fused” or “Not Pre-Personalized”

天大地大妈咪最大 提交于 2019-12-18 09:29:32
问题 I download a software named JCOP Manger from here to deal with my CJ3A080 jcop java card. It recognize my card currectly. but it don't let my to install or list applets! why? Output of this software: I try to select the ISD using CardTool (The software that I use to send APDU to card), but as you see below none of common AIDs not found on the card : Note that, CardTool output format is as below : < CLA | INS | P1 | P2 | Lc | Le < Command Data Field (If Possible) > Response Data Field (If

JavaCard: How can an applet's instance call a method in another instance's context?

冷暖自知 提交于 2019-12-18 03:48:23
问题 Consider a Java Card Classic applet with multiple instances that need to share some data in a byte[] variable (e.g. persistent mutable, that is EEPROM/Flash), containing information common to all instances. A static byte[] variable would be a perfect fit, but these happen to be prohibited by validation rules imposed on me (I'm told: as a catch-all way to demonstrate that un-instantiating an instance frees what it allocated on instantiation). This would be solved if a slave instance could call

Bad Padding Exception - RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING in pkcs11

故事扮演 提交于 2019-12-18 03:03:11
问题 My application is accessing e-Token for decrypting the response coming from the server The session key from the server is encrypted using :- RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING I am using SunPKCS11 Provider for implementing the access to crypto token. Whenever i try to decrypt this using the above mechanishm i.e. with RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING i am getting :- **javax.crypto.BadPaddingException: doFinal() failed at sun.security.pkcs11.P11RSACipher.implDoFinal(P11RSACipher.java

Bad Padding Exception - RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING in pkcs11

半城伤御伤魂 提交于 2019-12-18 03:03:11
问题 My application is accessing e-Token for decrypting the response coming from the server The session key from the server is encrypted using :- RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING I am using SunPKCS11 Provider for implementing the access to crypto token. Whenever i try to decrypt this using the above mechanishm i.e. with RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING i am getting :- **javax.crypto.BadPaddingException: doFinal() failed at sun.security.pkcs11.P11RSACipher.implDoFinal(P11RSACipher.java