PKCS15-PROFILE(5) OpenSC File Formats PKCS15-PROFILE(5) (NAME) pkcs15-profile - PKCS#15 OpenSC (DESCRIPTION) pkcs15-init PKCS #15 . : . . DF PKCS #15 . PIN . pkcs15.profile. PIN . : /usr/share/opensc PKCS#15: 1. MF (Master File) 2. DF(PKCS#15) PKCS#15 3. EF(ODF) Object Directory File (PrKDFs PuKDFs SKDFs CDFs DODFs AODFs) 4. PrKDF Private Key Directory File 5. PubKDF Public Key Directory File 6. CDF Certificate Directory File 7. EF(TokenInfo) (SYNTAX AND SEMANTICS) . : key [, name...] { block_contents } block_contents block_item block_item : o # o key[, name...] = value; o block . : o cardinfo: . o pkcs15: PKCS#15 . o option: . o PIN: PIN. o filesystem: . o macros (Profile file configuration) (Configuration of Card Information) cardinfo { block_contents } : label = name; (: OpenSC Card). manufacturer = name; (: OpenSC Project). min-pin-length = int; PIN (: 4). max-pin-length = int; PIN (: 8). pin-encoding = value; PIN. : o BCD: (binary-coded decimal) o ascii-numeric: ASCII o utf8 o half-nibble-bcd o iso9564-1 (: ascii-numeric). pin-pad-char = value; ( ) PIN (: 0x00). pin-domains = bool; PIN . DF PIN . (: no) PKCS#15 (Configuration of PKCS#15) pkcs15 { block_contents } PKCS#15 . : direct-certificates = bool; PKCS#15 CDF . CDF (: no). encode-df-length = bool; DF ODF. CDF (: no). do-last-update = value; EF(TokenInfo) (: yes). pkcs15-id-style = value; (ID) . : o native: 'E' + number_of_present_objects_of_the_same_type o mozilla: RSA SHA1(modulus) o rfc2459 SHA1(SequenceASN1 of public key components as ASN1 integers) minidriver-support-style = value; pkcs15-init minidriver. : o none o gemalto (: none) (Configuration of Profile Option) option name { block_contents } : o default: o onepin: PIN // PIN ( PIN ) o small: . pkcs15-init --profile name -p name : o pkcs15+default: ( ) o pkcs15+onepin: onepin o pkcs15+small: small option : macros { block_contents } name = value; . pkcs15 { block_contents } PKCS#15. PIN (Configuration of PINs) PIN name { block_contents } PIN : o pin user-pin ( ) o puk user-puk o sopin so-pin o sopuk so-puk : attempts = int; PIN (: 3). flags = value...; PIN . : o case-sensitive o local o change-disabled o unblock-disabled o initialized o needs-padding o unblockingPin o soPin o disable-allowed o integrity-protected o confidentiality-protected o exchangeRefData (: local,initialized,needs-padding). auth-id = value; (auth ID) (: 0). min-length = int; PIN (: min-pin-length cardinfo). max-length = int; PIN (: max-pin-length cardinfo). reference = int; PIN (: ). file = name; PIN (: None). offset = int; PIN PIN (: 0). encoding = value; PIN. : o BCD o ascii-numeric o utf8 o half-nibble-bcd o iso9564-1 (: pin-encoding cardinfo). stored-length = int; (: max-pin-length cardinfo). max-unlocks = int; (: 0). . (option) . (Configuration of Filesystem) filesystem { block_contents } . ( filesystem ) DF EF . DF EF . EF name { block_contents } (elementary file) PKCS#15 . : o PKCS15-TokenInfo o PKCS15-ODF o PKCS15-UnusedSpace o PKCS15-PRKDF o PKCS15-PUKDF o PKCS15-PUKDF-TRUSTED o PKCS15-SKDF o PKCS15-CDF o PKCS15-CDF-TRUSTED o PKCS15-CDF-USEFUL o PKCS15-DODF o PKCS15-AODF EF : type = EF; . acl = value; ACL ( ) (: NONE) file-id = EF; . structure = value; : o TRANSPARENT o LINEAR-FIXED o LINEAR-FIXED-TLV o LINEAR-VARIABLE o LINEAR-VARIABLE-TLV o CYCLIC o CYCLIC-TLV DF name { block_contents } (DF) PKCS#15 . : o MF o PKCS15-AppDF o DF PKCS15 DF : type = DF; . path = value; . file-id = value; . aid = value; AID XX:XX:XX:...:XX:XX:XX . acl = value; . size = int; . EF name { block_contents } . DF MF . DF MF (Master File) . . DF DF MF . pkcs15.profile . (SEE ALSO) pkcs15-init(1), pkcs15-crypt(1) opensc 06/02/2026 PKCS15-PROFILE(5)