smartcard

APDU read file java card program

☆樱花仙子☆ 提交于 2019-12-08 07:33:35
问题 i made java card classic applet using netbeans when i program the read operation i check for the first byte in the APDU to be 0x80 then the second to be 0xB0 then take the offset that i will read from in the file from the byte 2 and 3 then take the number of bytes to be read from byte 4 to be the APDU as the default one 0x80 0xB0 0x00 0x03 0x60 this read 60 bytes from the current file starting by offset number 3 when i try this command it returned error Input data length != Lc around line 12

How do I get all the smart card readers on my system via WMI?

旧巷老猫 提交于 2019-12-08 06:24:31
问题 I want to get the DeviceID and Service of all PCSC smart card readers on my system using WMI. They're all connected via USB, so I query the WMI registry for all Win32_PnPEntity s. But I have no clue how to determine which devices are 'card readers'. Here's what I already have: ManagementObjectSearcher mos = new ManagementObjectSearcher(@"\root\cimv2", @"Select * From Win32_PnPEntity"); ManagementObjectCollection mob = mos.Get(); foreach (ManagementObject mo in mob) { Console.WriteLine(

What are the requirements for IssuerScripts

不问归期 提交于 2019-12-08 06:11:49
问题 I am totally stumped about Issuer Scripts in EMV. I know what they are and I have read the EMV book 3. I was wondering if anyone has a good summary that tells me: Parse the script based on "86". Then based upon some values do this or that. Thanks 回答1: Content of EMV TAG 0x86 is ready to use APDU command for the smartcard. It could be any of EMV or ISO 7816 Commands actually and should be translated to smartcard thru EMV terminal application/kernel without additional modifications. Here are

.NET smartcard - serialize/deserialize the remote object. The input stream is not a valid format

瘦欲@ 提交于 2019-12-08 06:05:14
问题 I am using .NET smart card, it has the same concepts of .NET remoting. So my smartcard (as a server) has this service: public class MyService : MarshalByRefObject { string a = "abC"; public byte[] MySampleMethod() { MyService obj = new MyService(); return help.ObjectToByteArray( obj); }}} and this is ObjectToByteArray(obj) public static byte[] ObjectToByteArray(MyService obj) { if (obj == null) return null; BinaryFormatter bf = new BinaryFormatter(); MemoryStream ms = new MemoryStream(0); bf

Loading a .cap file onto a smart card: LOAD failed SW 69 85

。_饼干妹妹 提交于 2019-12-08 05:11:19
问题 I am having trouble loading the .cap file onto the smart card, its just a basic hello world program. I keep getting LOAD failed SW 69 85 as an error. Ive tried loading the .cap using gp and gpj. From the reading I've done it seems to be some security issue. I am still able to view the apps and delete it off the card, so the card is not locked yet. I'm just a beginner at this so help would be really appreciated. Here is the output from gpj: Found card in terminal: OMNIKEY Smart Card Reader USB

“GET PROCESSING OPTIONS” always 6700(wrong Lc or Le)

╄→尐↘猪︶ㄣ 提交于 2019-12-08 03:54:54
问题 I'm trying to read a smartcard via my LG P710 Optimus L7 2. I'm following this tutorial I can select the "1PAY.SYS.DDF01" directory I can select the Application But I can't perform an "GET PROCESSING OPTIONS" It always result in an 6700 error (Lc or Le wrong) here is my code NfcAdapter mNFCAdapter; Intent intent; PendingIntent pendingIntent; private TextView mTextView; String[][] techList; IntentFilter[] filters = new IntentFilter[3]; @Override protected void onCreate(Bundle

ACR122U NFC Peer to Peer demo not working

感情迁移 提交于 2019-12-08 03:24:16
问题 I've got an ACR122U NFC card reader and ACR122T token from ACS. I'm trying to run their NFC Peer to Peer demo. I've installed the ACR122U SDK, mysql and connector, set up the database, and added the escape command to the registry. When I try to run the peer to peer demo I carry out the following steps (with resultant log results shown) Insert NFC ACR122T into USB port. Open the Smart Poster application and click initalise with reader 0. Log: D1: 2:04:57 PM Program ready D1: 2:05:02 PM

SIM Card Authentication

六眼飞鱼酱① 提交于 2019-12-08 02:15:19
问题 I'm new to SIM Cards and I'm trying to authenticate to a SIM Card using Gemalto JCardManager (part of Gemalto Developer Suite), with Gemplus USB SmartCard Reader. Aparently, i have all the necessary keys (kic, kid and kik), but i can't authenticate. In fact, i have two SIM's: one SIM Card R5 and one USIM Card R5. I have configured the keys files for both of them, but when i try to authenticate to the SIM Card R5, the following message appears: [ERROR ] <- 6D 00 Command Exception on command:

Unable to generate correct application cryptogram

偶尔善良 提交于 2019-12-07 23:43:26
问题 I am successfully getting Generate Command response [9F02 06 (Amount, authorized, numeric)]: 000000003000 [9F03 06 (Amount, other, numeric)]: 000000000000 [9F1A 02 (Terminal country code)]: 0826 [95 05 (Terminal verification results)]: 0000000000 [5F2A 02 (Transaction currency code)]: 0826 [9A 03 (Transaction date)]: 150724 (2015-05-28) [9C 01 (Transaction type)]: 00 [9F37 04 (Unpredictable number)]: 12345678 And the command is 80 AE 4000 1D 000000003000 000000000000 0826 0000000000 0826

Opening a secure connection with Java Card and Global Platform

丶灬走出姿态 提交于 2019-12-07 17:31:07
问题 After succeeding with Java Card development on emulators now I'm dealing with a real Java Card (Gemalto IDCore 3010). I have been experiencing with the Global Platform, but I have problems even with the most basic sample code, that would list the applets on the card. This is the original code: mode_201 enable_trace establish_context card_connect select -AID a0000000030000 open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key