In this section, we will store a file on smart card and then get it back.
Here is our test.txt file:
Let us query the auth ID of the PIN that protects this key:
PIN [User PIN]
Com. Flags: 0x3
ID : 01
Flags : [0x30], initialized, needs-padding
Length : min_len:4, max_len:16, stored_len:16
Pad char : 0x00
Reference : 1
Type : ascii-numeric
Path :
To store the file on smart card with auth ID 01:
User PIN required.
Please enter User PIN:
After entering PIN, the file is stored on smart card.
To list files on card:
Reading data object <0>
applicationName: pkcs15-init
Label: Fichier test
applicationOID: NONE
Path: 3f0050153300
Auth ID: 01
Data Object (16 bytes): < 54 68 69 73 20 69 73 20 61 20 74 65 73 74 2E 0A >
Now, we open the file:
Let's display content:
Printer-friendly version- 3913 reads
PDF version




