smartcard

JCOP 0x6A82 after sending Select + Transport Key

隐身守侯 提交于 2019-12-23 02:32:15
问题 Hello I have one JCOP card not fused From my vendor I've got TK and command to open card When I sending to card [00:a4:04:00:10:40:41:42:43:44:45:46:47:48:49:4a:4b:4c:4d:4e:4f] I've got [6a:82] (File not found) How to personalized ? 回答1: For anybody having problem with not fused card: JCOP Admin manual can be found in public. However it is not easy to find. It gives enough details to pre-personalize and fuse the card manually. You can get it here. 回答2: For JCOP cards you need to perform

setATRHistBytes() method always returns false

大兔子大兔子 提交于 2019-12-22 17:52:07
问题 I wrote the following program to change the Historical Bytes in the ATR of my smartcard to, for example, 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 . I use GPSystem.setATRHistBytes() to set the historical bytes. Note that 0x00 0x00 ... 0x00 is not the actual value that I'm using for the historical bytes but I censored it. The actual value is an array of 15 bytes that is equal to the historical bytes of another exisitng card. package org.globalplatform; import javacard.framework.*;

PCSC.InvalidContextException when running as a Windows service

拜拜、爱过 提交于 2019-12-22 10:54:20
问题 I've been working on a small smart card scanner application using the pcsc-sharp library. The application works fine when running as a console application, the code is as follows: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.IO; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Text; using System.Drawing.Printing; using System.Net; using System.Net.Sockets; using System.Data.SqlClient;

Sending Extended APDU to Javacard

喜欢而已 提交于 2019-12-22 10:33:18
问题 I have a ACR38 samrt-card-reader and a number of Javacard [2.1.1] compliant with GP Spec [02]. As I know, there is two kind of APDU, Short-APDU [APDU with LC or/and LE shorter than 255 ] and Extended-APDU [APDU with LC or/and LE greater than 255 ]. is that right? We send Short-APDU in T=0 protocol and send Extended-APDU in T=1 protocol. is that right? I sent Short-APDU to my card successfully. [via GPJ , GPShell , OpenSC-Tool ]. And now, I want to know: 1: if I want to use Extended APDU, my

ePassport reading with PN532, Keep Getting SW1 SW2 = 0x69 0x88 (Incorrect Secure Messaging Data Objects)

强颜欢笑 提交于 2019-12-22 09:28:53
问题 I'm trying to read the EF.COM file from an ePassport (a.k.a MRTD). What I have successfully done: -Selected the ePassport application using the AID 0xA0,0x00,0x00,0x02,0x47,0x10,0x01 -Requested a challenge nonce from the epassport chip -Successfully authenticated by responding to that challenge as per doc9303 appendix 5. Doc 9303 can be viewed here: http://www.icao.int/publications/Documents/9303_p1_v2_cons_en.pdf It worked and now I am attempting to read the EF.COM file using the secure

Android SSL with a Smart Card through PKCS#11

允我心安 提交于 2019-12-22 00:24:59
问题 The reason that this question was born is that I am totally lost, so please forgive the trivial and senseless parts. I have an Android app, a web-service, a MicroSD smart card (mobile security card). I need to know how can I use the card with ssl to securely communicate with the web-service. Rebuilding and flashing the OS is not an option. What I know: The API used to communicate with the MSC How to write/deploy applets to the MSC How to call a web-service What I don't know: SSL Too much

Sign data using smart card's private key with ASP.NET, Windows Authentication, and Impersonation

眉间皱痕 提交于 2019-12-22 00:19:52
问题 I want to know if it is possible to sign data using a smart card's private key without resorting to a java applet or activex control. I am tantalizingly close! Our environment is: AD Domain PKI infrastructure/smart cards (PIV) I knocked up a simple ASP.NET (.net 4.0) web forms app with: Windows Authentication on, Anonymous off Identity Impersonate on With the smart card in the reader I can easily enumerate the certificates on the logged-in user's smart card (StoreLocation.CurrentUser).

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

这一生的挚爱 提交于 2019-12-21 23:52:43
问题 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

Use APDU commands to get some information for a card

橙三吉。 提交于 2019-12-21 21:21:34
问题 I have a terminal that has its own API to stablish and send commands between chip and terminal, there is a function that transmits the APDU command and returns the answer in a byte array. For example, if a want to read the tag 5A (Application PAN), I send the following command: byte[] byteArrayAPDU = new byte[]{(byte)0x00, (byte)0xCA, (byte)0x00, (byte)0x5A}; int nResult = SmartCardInterface.transmit(nCardHandle, byteArrayAPDU, byteArrayResponse); The variable byteArrayResponse gets the

How to work with a Smart Card

五迷三道 提交于 2019-12-21 18:16:32
问题 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. 回答1: Well, if I google for "C# smartcard" the first link