Questions tagged [smartcard]

A smartcard is a card with an embedded chip that may store cryptographic keys and/or perform cryptographic functions. Smartcards are often use as employee ID badges or in contactless credit/debit cards.

Smartcards used for cryptographic functions such as identity verification, signing, and decryption are usually designed so that the cards can generate their own cryptographic public/private key pairs, such that the private key cannot be removed or exported from the card. Using a smartcard to decrypt or sign a piece of data is usually protected by a PIN or passcode.

If you receive a message, whose signature can be validated using the public key, then you know that the message could only have been signed using the private key stored on the smartcard, which means that the message came from someone having physical possession of the smartcard and who knows the PIN or passcode required to use the smartcard. Having the decryption key on the card directly enforces, that without card and PIN knowledge just the encrypted message is available.

SIM cards used in mobile phones are also smart cards, proving an existing account towards network and storing phone numbers and text messages.

EMV cards (also known as "chip and pin") use smartcards to increase security and decrease fraud. The EMV standard, and its test cases, are governed by EMVCo.

Smartcards have a dedicated standard: ISO/IEC 7816 that describes what defines a smartcard from physical characteristics to cryptographic information application, including protocols and commands.

Contactless smart card (such as PayPass and payWave etc) are covered by ISO/IEC 14443; that describe the physical characteristics of the card, power and signal interfaces, transmission and collision detection, and transmission protocols.

EMV cards are also issued with "dual" interfaces that use the same chip on the card and two external interfaces.

1917 questions
11
votes
3 answers

Smartcard terminal removal : SCARD_E_NO_SERVICE CardException

I am working on an Java application which uses smartcardio to work with smartcard. It must be possible to have one removing its USB card reader and then inserting it again without starting again the applet. I am using the terminals() and…
JR Utily
  • 1,792
  • 1
  • 23
  • 38
11
votes
3 answers

Developing a smartcard reader in Android

We developed a prototype board with a microcontroller, which can communicate with a SmartCard (It can read the ATR, issue and read responses to APDU commands, etc).Now I want to use this hardware with an Android phone or tablet. Our board has a USB…
SomethingBetter
  • 1,294
  • 3
  • 16
  • 32
11
votes
2 answers

APDU command to get smart card uid

i am looking for APDU to find UID of contact less ISO 14443 smart card and how to use it to print in Linux terminal. Problem is that i found many people talking about it, but there is no solution. Can anyone help is this regard??? Thanks
Salman
  • 177
  • 2
  • 3
  • 9
11
votes
5 answers

Use READ BINARY to read more than 256 bytes

I am trying to read a smartcard(German Gesundheitskarte) using javax.smartcardio In the definition of the EF "PD" its length is specified as 850 bytes. The content should be a gzipped ISO5589-15 encoded XML string as specified here As CommandAPDU I…
rretzbach
  • 744
  • 1
  • 6
  • 16
10
votes
4 answers

C# smartcards programming

How should I start to programm in C# (.NET) for smartcards? For the beginning I just need to know, what is the name of Card Reader (e.g. Omnikey) and print that out. Thanks for the answer, Ales.
Thorusan86
  • 243
  • 2
  • 6
  • 15
10
votes
5 answers

How to Self-Lock a Javacard Applet

My question is whether it is possible to lock an applet from within the code of the applet itself as a countermeasure to detected manipulations from within the code. The obvious choice is to use GPSystem.lockCard(); and it works, however I wonder if…
Paul Bastian
  • 2,597
  • 11
  • 26
10
votes
2 answers

Send APDU commands to USIM/SIM card in android

I was already worked with smart cards and I am familiar with APDU commands (that are defined in ISO/IEC 7816 and Global Platform specifications). Now I want to know if there is any way to send an APDU command to my USIM/SIM card that is inserted to…
Jean
  • 687
  • 1
  • 9
  • 25
10
votes
2 answers

Smart Card Reader T0 T1 communication on APDU level

I am struggle to understand what protocol I have to use to communicate with the card T0 or T1? So, correct me if I am wrong, but the reader actually decides by itself what protocol to use to communicate with the card if the card supports both. So…
Alex D
  • 942
  • 1
  • 6
  • 17
10
votes
5 answers

Init update given 6985 and 61xx in two different scenario

I have a java card and i write a small code to send APDU to java card. here when i am sending Init_Update command , m getting 0x6985 like:- CMD -> 80 50 00 00 08 11 22 33 44 55 66 77 88 RES <- 6985 But when I am sending this command with other tool…
Arjun
  • 3,491
  • 4
  • 25
  • 47
10
votes
3 answers

Why is remote SmartCard not found when using RDP

I'm using Windows Server 2008 R2 which runs a VB6.0 application that uses a smartcard locally. I then connect to this machine remotely using Remote Desktop Connection (6.3). However now the application shows the following error…
dan983
  • 454
  • 2
  • 5
  • 19
10
votes
2 answers

How to check that smart card is working on linux?

I've a PKCS-11 supported smartcard? I just want to check that my the smartcard is working fine or not. How can check it on Ubuntu? Please guide me. what software I can use? how what steps should I follow?
sms247
  • 4,404
  • 5
  • 35
  • 45
10
votes
3 answers

CAC Smartcard Reauthenticate

We have one browser-based application where we want to make the user reauthenticate when they enter it. So when they access that URL we want them to be presented with the PIN prompt so they have to reauthenticate. Is there a reasonable way to do…
adg
  • 552
  • 1
  • 6
  • 17
10
votes
3 answers

Java Card: How to load SIM applet to real smart card?

I developed a Java Card applet in Eclipse and obtained a cap file. Then i used jcManager – Java Secure Card Manager to load that file to my smart cards. I have two type of smart cards: Contact, JCOP 2.1 36K Contactless, JCOP 2.1 My smart card…
Oguz Ozkeroglu
  • 3,025
  • 3
  • 38
  • 64
9
votes
5 answers

What APDU command gets card ID

Which APDU command gets 7 bytes of the card ID? I use T=CL (ISO7816) protocol with ISO14443 layer. On detect card I can see only 4 bytes of the card ID. I found that this should be the APDU command to get a card ID. For example its: 0xFF, 0xCA, …
dr_begemot
  • 133
  • 1
  • 2
  • 7
9
votes
7 answers

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

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…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825