smartcard

How to disable Winscard Discovery in Windows 10?

情到浓时终转凉″ 提交于 2019-11-30 23:34:43
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? You have 3 solutions 1) Edit computer policies Launch gpedit.msc Section Computer Configuration --> Administrative Templates --> Windows Components --> Smart Card Disable Smartcard driver popup: Smart Card Plug and Play service: disable Disable smartcard

How to get a unique smart card ID?

蓝咒 提交于 2019-11-30 18:11:19
问题 I'm searching for a way to find a unique number for every smart card I work with. I have heard there are IC Fabrication date, IC Serial Number and IC Batch Identifier that are unique for every card. how can I get these information from my card? 回答1: Surely every hardware supplier integrates information like the mentioned into the chip. This unfortunately leaves the following problems: The information may or may not be made available by the operating system There is little in common between

Java Signature.verify results in SignatureException: Signature encoding error Caused by IOException: Sequence tag error

独自空忆成欢 提交于 2019-11-30 16:41:46
first of all this is not a duplicate question as most people report this exception when creating a Public Key from a Certificate which is missing "---BEGIN RSA CERTIFICATE---" line. gist of what I am trying to do is 1. Sign a 50Byte message on JCOP Smart card using SHA1withRSA algorithm (RSA Key is 1024 bits). 2. Export the signature from smart card to server. 3. Verify the signature on the server. Code snippet on the smart card to create the signature. The key point is I am using algorithm Signature.ALG_RSA_SHA_PKCS1 in the Java Card to create the signature. private void setcustccid(APDU apdu

Access restriction on sun.security.pkcs11.SunPKCS11

☆樱花仙子☆ 提交于 2019-11-30 16:38:30
问题 I'm trying to setup a PKCS11 provider for accessing a smartcard. I installed a PKCS11 library on my system and followed the instructions in the Java PKCS#11 Reference Guide. In the reference they simply create an instance of sun.security.pkcs11.SunPKCS11 and pass the name of the configuration file to the constructor. When I try to compile the following code Provider p = new sun.security.pkcs11.SunPKCS11("pkcs11.cfg"); Security.addProvider(p); I get the following error. Access restriction: The

Reading public data of EMV card

元气小坏坏 提交于 2019-11-30 16:04:42
问题 Say I want to read public elements of EMV card. I will list some steps which I think are involved. 1. First, select application In order to select application we must: (1) find out AID of application using PSE (if present) (2) Try existing AID list. Now, imagine I successfully selected application using one of the two methods above. My question is : What steps I must undertake further to read the public elements of EMV card? More precisely: Do I need to provide card with PDOL and get AIP and

Exception in thread “main” java.lang.UnsatisfiedLinkError"

↘锁芯ラ 提交于 2019-11-30 09:05:31
问题 This exception is arising when I am running my program for smart card reading. My device is not connected. Please help me. 回答1: This means it could not load a shared library you need. This could be because. The library is not in your library path. The library does not have the right name e.g. LIBRARY must be libLIBRARY.so on Unix The library is not executable by you. The library is not for the OS or bit size of your JVM. e.g. a 64-bit JVM will not load a 32-bit library. Your JRE is not

Symptoms of EEPROM damage

给你一囗甜甜゛ 提交于 2019-11-30 07:59:34
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 failures occur more and more often? In my experiment (J2E145) there was the first failure after 5 000

SCardTransmit() always return 6d00

假如想象 提交于 2019-11-30 07:47:14
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. I am not familiar with this API you are using, but you will have to send the following sequence of APDU commands: SELECT PSE (for contact card), specified by EMV in Book 1, 11.3. An example is

Digital signature from electronic smartcard in Chrome

家住魔仙堡 提交于 2019-11-30 05:01:06
For an electronic prescription system, that runs on the browser and that requieres personal signature by the professional, we are using a Java applet to sign the XML request, that then is sended to a WS, using a smartcard. But since version 42, Chrome is disabling by default NPAPI support , and in future versions next to September 2015 it will be completely disabled and then applets won't be usable at all. At Chrome NPAPI deprecation page points to WebCrypto and TLS as alternatives. But it seems that WebCrypto has leaved out of scope the support of smartcards , and it seems that TLS is only

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

给你一囗甜甜゛ 提交于 2019-11-30 04:15:30
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 card reader, I get the following information: Smart Card Name: iCLASS 16KS UID:EE 74 0E 00 FB FF 12 E0