Skip to content

Instantly share code, notes, and snippets.

@hamano
Last active February 21, 2017 09:20
Show Gist options
  • Save hamano/f7677926a9d57efdc021930e96b3bddb to your computer and use it in GitHub Desktop.
Save hamano/f7677926a9d57efdc021930e96b3bddb to your computer and use it in GitHub Desktop.
% pkcs11-tool -L
Available slots:
Slot 0 (0x0): NTT Communications Corp. SCR3310-NTTCom USB SmartCard Reader [Ve
token label : User Authentication PIN (JPKI)
token manufacturer : JPKI
token model : PKCS#15 emulated
token flags : login required, token initialized, PIN initialized
hardware version : 0.0
firmware version : 0.0
serial num : 00000000
Slot 1 (0x1): NTT Communications Corp. SCR3310-NTTCom USB SmartCard Reader [Ve
token label : Digital Signature PIN (JPKI)
token manufacturer : JPKI
token model : PKCS#15 emulated
token flags : login required, token initialized, PIN initialized
hardware version : 0.0
firmware version : 0.0
serial num : 00000000
% pkcs15-tool -D
Using reader with a card: NTT Communications Corp. SCR3310-NTTCom USB SmartCard Reader [Vendor Interface] (21120651300935) 00 00
PKCS#15 Card [JPKI]:
Version : 0
Serial number : 00000000
Manufacturer ID: JPKI
Flags :
PIN [User Authentication PIN]
Object Flags : [0x12], modifiable
ID : 01
Flags : [0x12], local, initialized
Length : min_len:4, max_len:4, stored_len:0
Pad char : 0x00
Reference : 1 (0x01)
Type : ascii-numeric
Tries left : 3
PIN [Digital Signature PIN]
Object Flags : [0x12], modifiable
ID : 02
Flags : [0x12], local, initialized
Length : min_len:6, max_len:16, stored_len:0
Pad char : 0x00
Reference : 2 (0x02)
Type : ascii-numeric
Tries left : 5
Private RSA Key [User Authentication Key]
Object Flags : [0x1], private
Usage : [0x4], sign
Access Flags : [0x1D], sensitive, alwaysSensitive, neverExtract, local
ModLength : 2048
Key ref : 1 (0x1)
Native : yes
Auth ID : 01
ID : 01
MD:guid : c5a0a252-9d2d-eb60-fec0-41b4fbd722a2
Private RSA Key [Digital Signature Key]
Object Flags : [0x1], private
Usage : [0x204], sign, nonRepudiation
Access Flags : [0x1D], sensitive, alwaysSensitive, neverExtract, local
ModLength : 2048
Key ref : 2 (0x2)
Native : yes
Auth ID : 02
ID : 02
MD:guid : e1bc1dae-59f1-16ab-b43f-9dafbb2acc9b
X.509 Certificate [User Authentication Certificate]
Object Flags : [0x0]
Authority : no
Path : 000a
ID : 01
Encoded serial : 02 03 60F704
X.509 Certificate [Digital Signature Certificate]
Object Flags : [0x0]
Authority : no
Path : 0001
ID : 02
X.509 Certificate [User Authentication Certificate CA]
Object Flags : [0x0]
Authority : no
Path : 000b
ID : 03
Encoded serial : 02 01 01
X.509 Certificate [Digital Signature Certificate CA]
Object Flags : [0x0]
Authority : no
Path : 0002
ID : 04
Encoded serial : 02 01 01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment