smartcard

How to cache eToken PIN for multiple processes

六眼飞鱼酱① 提交于 2019-12-04 18:51:33
I have a .NET (c#) application which uses the x509Certificate2 in the 'my' Certificate Store, originally coming from an eToken device. When I use the certificate (to decrypt data or use it as a clientcert for web requests), it will ask for the device PIN once. After that, it is cached, the user isn't bothered with the password request every xx minutes. Now, I have multiple processes, that all use the certificate. Each of these processes will request the device PIN. (the cache seems to be per process). Is there an easy way around this? Can I 'cache' it somewhere, so that every process can

authentication error for mifare card “6982:Security status not satisfied”

守給你的承諾、 提交于 2019-12-04 18:15:00
I know. This question asked before under same tag and same name here . But the answers are useless for me. and i opened again for real answers. I have pc/sc reader and Contactless card(mifare card), I can connect to the card and also I execute getdate command successfully, but when I want to authenticate I see this error "6982:Security status not satisfied" I've tried these 4 different commands for authentication but I get the same error for all of them. FF 88 00 00 06 FF FF FF FF FF FF FF 88 00 00 60 12 FF 88 00 00 05 01 00 12 60 00 FF 88 00 00 60 00 how can I authenticate to this card ? The

How to verify signed data with PyKCS11 Library

一笑奈何 提交于 2019-12-04 17:12:20
I wrote a simple Python script which makes a digital signature using my smart card (Rutoken ECP SC), PKCS#11 library (implemented by my vendor) and PyKCS11 wrapper for Python. I already generated the private/public key pair using this card and created a signature using pkcs11 but I don't know how to verify this signed data. The problem is that my pkcs11 library (implemented in c++) has verification methods but PyKCS11 wrapper don't. And now I don't know how to solve this problem. I will be appreciated if anybody could tell me how to fix this problem. That's my script: import PyKCS11 import

Some questions about SELECT APDU command in Javacards

若如初见. 提交于 2019-12-04 14:08:58
The quoted below passage is a part of an article that named How to write a Java Card applet: A developer's guide and written by Zhiqun Chen. I saw it here Once an applet is selected, the JCRE forwards all subsequent APDU commands (including the SELECT command) to the applet's process() method. In the process() method, the applet interprets each APDU command and performs the task specified by the command. For each command APDU, the applet responds to the CAD by sending back a response APDU, which informs the CAD of the result of processing the command APDU. The process() method in class

Unkown error 0x16 on smartcard reader access

ε祈祈猫儿з 提交于 2019-12-04 13:26:08
I am trying to change the buzzer duration on the ACR1252U. Link to API: http://www.acs.com.hk/download-manual/6402/API-ACR1252U-1.09.pdf According to the API documentation I need the 'E0000028010A' command to change the buzzer status, whereby '0A' marks the duration as 0A*10ms (Page 44). Following Java code is used: public static void main(String[] args) { try { byte[] send = new byte[6]; send[0] = (byte) 0xE0; // Commandclass send[1] = (byte) 0x00; // Protocoll send[2] = (byte) 0x00; // Param 1 send[3] = (byte) 0x28; // Param 2: Buzzerstatus send[4] = (byte) 0x01; // Change Flag send[5] =

Extended APDUs and T=0/1 communication protocols

*爱你&永不变心* 提交于 2019-12-04 11:48:18
I have a JCOP V2.4.2 R3 java card that it is mentioned in its datasheet "The card support both T=1 and T=0 communication protocols" I have also an ACR38 smart card reader that it support both T=0 and T=1 protocols. (I have T=0 communication with one card successfully and T=1 communication with this card successfully.) I wrote the below program and upload it on the card to send and receive extended APDUs: package extAPDU; import javacard.framework.APDU; import javacard.framework.Applet; import javacard.framework.ISOException; import javacardx.apdu.ExtendedLength; public class ExAPDU extends

Smart card reader development with .Net technologies

心已入冬 提交于 2019-12-04 11:35:13
问题 Does anyone know how to monitor the presence of smart card and read the UID value of the card? Yes I tried lot of examples in web like A Smart Card Framework for .NET pcsc-sharp Monitoring a Smartcard Reader But No idea how to do it. I can detect the presence of a card and can get the UID separately, but no idea how to combine them in my application:( . Help me 回答1: I figure it out. thought to share with anyone interested. I used winscard.dll functions to access card data and communicate with

Are there javax.smartcardio analogues on Android?

社会主义新天地 提交于 2019-12-04 10:32:58
Are there javax.smartcardio analogues on Android? but not using Open Mobile API. Thanks! I'm using javax.smartcardio.* as a facade to IsoDep on Android in a project called SCUBA . Note that this is for trancieving APDUs to ISO14443 cards in the field of the NFC chip (in NFC capable Android phones), and not for communicating with SIM or SE. (Main motivation was to be able to use the same JMRTD ePassport reading API jar both on J2SE and Android without changes.) EDIT: If you're interested in communicating with a card in an external reader, have a look at this SCDroid project . Also ACS appears

How to work with a Smart Card

ぃ、小莉子 提交于 2019-12-04 10:02:15
My project I am working on a small program which has to set an alarm if the user locks the computer without removing the Smart Card from the computer. I am using C# with WPF and .Net 4.0 and my smartcard is version V4.2C My problem I have all the functionality to work but I simply don't know how to detect if the Smart Card is in the Smart Card Reader. I have tried to search on google but with no result so I hope some of you can help me. Well, if I google for "C# smartcard" the first link which pops up is a code project article . It appears that the project provides events for detection of

Can a Java Web Application access a Smart card reader on a remote work station?

北慕城南 提交于 2019-12-04 02:38:36
问题 I am working on some new functionality for one of our existing Java based web applications. The web app itself is hosted on one of our internal servers and can be accessed via the browser at several computer terminals throughout our facility. The application is for conducting quality checks at various stages of our production process. Currently, users are required to manually login by selecting their userName from a drop down and entering their password before conducting each quality check.