Skip to content

Instantly share code, notes, and snippets.

@henryk
Created May 24, 2014 09:44
Show Gist options
  • Save henryk/0ff6a78d2d8cf387f871 to your computer and use it in GitHub Desktop.
Save henryk/0ff6a78d2d8cf387f871 to your computer and use it in GitHub Desktop.
henryk@aurora:~/prog/cyberflex-shell$ pkcs15-tool -D
Using reader with a card: Lenovo Integrated Smart Card Reader 00 00
PKCS#15 Card [OpenSC Card]:
Version : 0
Serial number : 0C0A548021192C0A
Manufacturer ID: OpenSC Project
Last update : 20140524091727Z
Flags : EID compliant
PIN [Security Officer PIN]
Object Flags : [0x3], private, modifiable
ID : ff
Flags : [0x92], local, initialized, soPin
Length : min_len:4, max_len:16, stored_len:8
Pad char : 0x00
Reference : 7 (0x07)
Type : ascii-numeric
Path : 3f005015
PIN [Auth PIN]
Object Flags : [0x3], private, modifiable
ID : 01
Flags : [0x12], local, initialized
Length : min_len:4, max_len:16, stored_len:6
Pad char : 0x00
Reference : 9 (0x09)
Type : ascii-numeric
Path : 3f005015
PIN [Sign PIN]
Object Flags : [0x3], private, modifiable
ID : 02
Flags : [0x12], local, initialized
Length : min_len:4, max_len:16, stored_len:8
Pad char : 0x00
Reference : 11 (0x0B)
Type : ascii-numeric
Path : 3f005015
Private RSA Key [Sign key]
Object Flags : [0x3], private, modifiable
Usage : [0xC], sign, signRecover
Access Flags : [0x1D], sensitive, alwaysSensitive, neverExtract, local
ModLength : 1024
Key ref : 0 (0x0)
Native : yes
Path : 3f0050150100
Auth ID : 02
ID : 01
GUID : {fbe9711f-51d5-2133-e484-fd7dff4ca659}
Private RSA Key [Auth key]
Object Flags : [0x3], private, modifiable
Usage : [0xC], sign, signRecover
Access Flags : [0x1D], sensitive, alwaysSensitive, neverExtract, local
ModLength : 1024
Key ref : 1 (0x1)
Native : yes
Path : 3f0050150101
Auth ID : 01
ID : 03
GUID : {b960b436-3299-2d7d-4cd2-8944726baa19}
Public RSA Key [Sign key]
Object Flags : [0x2], modifiable
Usage : [0xC0], verify, verifyRecover
Access Flags : [0x0]
ModLength : 1024
Key ref : 0 (0x0)
Native : no
Path : 3f0050153003
ID : 01
DirectValue : <absent>
Public RSA Key [Auth key]
Object Flags : [0x2], modifiable
Usage : [0xC0], verify, verifyRecover
Access Flags : [0x0]
ModLength : 1024
Key ref : 0 (0x0)
Native : no
Path : 3f0050153004
ID : 03
DirectValue : <absent>
henryk@aurora:~/prog/cyberflex-shell$ opensc-explorer
OpenSC Explorer version 0.13.0
Using reader with a card: Lenovo Integrated Smart Card Reader 00 00
OpenSC [3F00]> cd 5015
OpenSC [3F00/5015]> info 0100
Elementary File ID 0100
File path: 3F00/5015/0100
File size: 128 bytes
EF structure: Transparent
ACL for READ: N/A
ACL for UPDATE: CHV9
ACL for DELETE: N/A
ACL for WRITE: N/A
ACL for REHABILITATE: NEVR
ACL for INVALIDATE: N/A
ACL for LIST FILES: N/A
ACL for CRYPTO: N/A
Proprietary attributes: 00 05 00 01 00 02 C0 02 80 C0 00
Security attributes: 80 01 50 97 00 80 01 02 A0 01 09 80 01 20 A0 01 09
OpenSC [3F00/5015]> info 0101
Elementary File ID 0101
File path: 3F00/5015/0101
File size: 128 bytes
EF structure: Transparent
ACL for READ: N/A
ACL for UPDATE: CHV9
ACL for DELETE: N/A
ACL for WRITE: N/A
ACL for REHABILITATE: NEVR
ACL for INVALIDATE: N/A
ACL for LIST FILES: N/A
ACL for CRYPTO: N/A
Proprietary attributes: 44 03 00 01 00 02 C0 02 80 C0 00
Security attributes: 80 01 50 97 00 80 01 02 A0 01 09 80 01 20 A0 01 09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment