2004-06-16 20:59:59 +00:00
|
|
|
#
|
|
|
|
# PKCS15 r/w profile for Oberthur cards
|
|
|
|
#
|
|
|
|
cardinfo {
|
2010-01-15 14:08:54 +00:00
|
|
|
label = "SCM";
|
|
|
|
manufacturer = "Oberthur/OpenSC";
|
2004-06-16 20:59:59 +00:00
|
|
|
|
2010-01-15 14:08:54 +00:00
|
|
|
max-pin-length = 64;
|
|
|
|
min-pin-length = 4;
|
|
|
|
pin-encoding = ascii-numeric;
|
|
|
|
pin-pad-char = 0xFF;
|
2004-06-16 20:59:59 +00:00
|
|
|
|
|
|
|
# Delete or not the public key when inconporating the
|
|
|
|
# corresponding certificate.
|
|
|
|
keep-public-key = no; # yes/no
|
|
|
|
}
|
|
|
|
|
|
|
|
# Define reasonable limits for PINs and PUK
|
|
|
|
# Note that we do not set a file path or reference
|
|
|
|
# here; that is done dynamically.
|
|
|
|
PIN user-pin {
|
2010-01-15 14:08:54 +00:00
|
|
|
attempts = 5;
|
|
|
|
max-length = 64;
|
|
|
|
min-length = 4;
|
|
|
|
flags = 0x32; # local, initialized, needs-padding
|
2004-06-16 20:59:59 +00:00
|
|
|
reference = 1
|
|
|
|
}
|
|
|
|
PIN user-puk {
|
2010-01-15 14:08:54 +00:00
|
|
|
attempts = 5;
|
|
|
|
max-length = 16;
|
|
|
|
min-length = 4;
|
|
|
|
flags = 0x32; # local, initialized, needs-padding
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
PIN so-pin {
|
2010-01-15 14:08:54 +00:00
|
|
|
auth-id = FF;
|
|
|
|
attempts = 3;
|
|
|
|
max-length = 64;
|
|
|
|
min-length = 4;
|
|
|
|
flags = 0xB2;
|
2007-01-02 10:06:02 +00:00
|
|
|
reference = 4
|
2004-06-24 17:03:17 +00:00
|
|
|
# default-value = "31:32:33:34:35:36:37:38";
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
|
2007-01-02 10:06:02 +00:00
|
|
|
# CHV5 used for Oberthur's specifique access condition "PIN or SOPIN"
|
2004-06-16 20:59:59 +00:00
|
|
|
# Any value for this pin can given, when the OpenSC tools are asking for.
|
|
|
|
|
|
|
|
# Additional filesystem info.
|
|
|
|
# This is added to the file system info specified in the
|
|
|
|
# main profile.
|
|
|
|
filesystem {
|
2010-01-15 14:08:54 +00:00
|
|
|
DF MF {
|
2007-01-02 10:06:02 +00:00
|
|
|
ACL = *=CHV4;
|
2004-06-16 20:59:59 +00:00
|
|
|
|
|
|
|
DF OberthurAWP-AppDF {
|
|
|
|
ACL = *=NONE;
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = CREATE=CHV4, CRYPTO=NEVER, PIN-DEFINE=CHV4, PIN-RESET=CHV4;
|
2004-06-16 20:59:59 +00:00
|
|
|
file-id = 5011;
|
|
|
|
size = 40;
|
|
|
|
|
2010-01-15 14:08:54 +00:00
|
|
|
DF private-DF {
|
2004-06-16 20:59:59 +00:00
|
|
|
ACL = *=NEVER;
|
|
|
|
ACL = CREATE=CHV1, CRYPTO=CHV1, FILES=NONE, DELETE=NONE;
|
|
|
|
file-id = 9002;
|
|
|
|
size = 40;
|
|
|
|
|
|
|
|
# Private RSA keys
|
|
|
|
EF OberthurAWP-private-key-info {
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = WRITE=CHV1, UPDATE=CHV1, READ=CHV1;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
EF template-private-key {
|
2010-01-15 14:08:54 +00:00
|
|
|
file-id = 3000;
|
2004-06-16 20:59:59 +00:00
|
|
|
type = internal-ef;
|
|
|
|
# READ acl used instead of DECRYPT/SIGN
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = UPDATE=CHV1, READ=CHV1;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Private DES keys
|
|
|
|
EF OberthurAWP-private-des-info {
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = WRITE=CHV1, UPDATE=CHV1, READ=CHV1;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
EF template-private-des {
|
2010-01-15 14:08:54 +00:00
|
|
|
file-id = 4000;
|
2004-06-16 20:59:59 +00:00
|
|
|
type = internal-ef;
|
|
|
|
size = 24; # 192 bits
|
|
|
|
# READ acl used insted of DECRYPT/ENCRYPT/CHECKSUM
|
|
|
|
ACL = UPDATE=CHV1, READ=CHV1;
|
2010-01-15 14:08:54 +00:00
|
|
|
}
|
2004-06-16 20:59:59 +00:00
|
|
|
|
|
|
|
# Private data
|
|
|
|
EF OberthurAWP-private-data-info {
|
|
|
|
ACL = WRITE=CHV1, UPDATE=CHV1, READ=CHV1;
|
|
|
|
}
|
|
|
|
EF template-private-data {
|
2010-01-15 14:08:54 +00:00
|
|
|
file-id = 6000;
|
2004-06-16 20:59:59 +00:00
|
|
|
ACL = WRITE=CHV1, UPDATE=CHV1, READ=CHV1;
|
|
|
|
}
|
|
|
|
}
|
2010-01-15 14:08:54 +00:00
|
|
|
|
2004-06-16 20:59:59 +00:00
|
|
|
DF public-DF {
|
|
|
|
ACL = CREATE=NONE, CRYPTO=NONE, FILES=NONE, DELETE=NONE;
|
|
|
|
file-id = 9001;
|
|
|
|
size = 80;
|
|
|
|
|
|
|
|
# Certificate
|
|
|
|
EF OberthurAWP-certificate-info {
|
|
|
|
ACL = WRITE=NONE, UPDATE=NONE, READ=NONE, ERASE=NONE;
|
|
|
|
}
|
|
|
|
EF template-certificate {
|
|
|
|
file-id = 2000;
|
|
|
|
ACL = WRITE=NONE, UPDATE=NONE, READ=NONE, ERASE=NONE;
|
2010-01-15 14:08:54 +00:00
|
|
|
}
|
2004-06-16 20:59:59 +00:00
|
|
|
|
|
|
|
#Public Key
|
|
|
|
EF OberthurAWP-public-key-info {
|
|
|
|
ACL = WRITE=NONE, UPDATE=NONE, READ=NONE, ERASE=NONE;
|
|
|
|
}
|
2010-01-15 14:08:54 +00:00
|
|
|
EF template-public-key {
|
|
|
|
file-id = 1000;
|
2004-06-16 20:59:59 +00:00
|
|
|
type = internal-ef;
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = *=NONE;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Public DES keys
|
|
|
|
EF OberthurAWP-public-des-info {
|
|
|
|
ACL = WRITE=NONE, UPDATE=NONE, READ=NONE, ERASE=NONE;
|
|
|
|
}
|
|
|
|
EF template-public-des {
|
2010-01-15 14:08:54 +00:00
|
|
|
file-id = 7000;
|
2004-06-16 20:59:59 +00:00
|
|
|
type = internal-ef;
|
|
|
|
size = 24; # 192 bits
|
|
|
|
ACL = *=NONE;
|
2010-01-15 14:08:54 +00:00
|
|
|
}
|
2004-06-16 20:59:59 +00:00
|
|
|
|
|
|
|
# Public data
|
|
|
|
EF OberthurAWP-public-data-info {
|
|
|
|
ACL = WRITE=NONE, UPDATE=NONE, READ=NONE, ERASE=NONE;
|
|
|
|
}
|
|
|
|
EF template-public-data {
|
2010-01-15 14:08:54 +00:00
|
|
|
file-id = 5000;
|
2004-06-16 20:59:59 +00:00
|
|
|
ACL = *=NONE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
EF OberthurAWP-token-info {
|
|
|
|
file-id = 1000;
|
|
|
|
size = 36;
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = WRITE=CHV4, UPDATE=CHV4, READ=NONE, ERASE=NEVER;
|
2007-01-02 10:06:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF OberthurAWP-puk-file {
|
|
|
|
file-id = 2000;
|
|
|
|
size = 16;
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = WRITE=NEVER, UPDATE=CHV4, READ=NONE, ERASE=NEVER;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF OberthurAWP-container-list {
|
|
|
|
file-id = 3000;
|
|
|
|
structure = linear-variable;
|
|
|
|
size = 20;
|
|
|
|
record-length = 141;
|
2007-01-02 10:06:02 +00:00
|
|
|
ACL = WRITE=NONE, UPDATE=NONE, READ=NONE, ERASE=CHV5;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF OberthurAWP-public-list {
|
|
|
|
file-id = 4000;
|
|
|
|
size = 250;
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = *=NONE, ERASE=NEVER;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF OberthurAWP-private-list {
|
|
|
|
file-id = 5000;
|
|
|
|
size = 125;
|
2010-01-15 14:08:54 +00:00
|
|
|
ACL = WRITE=CHV1, UPDATE=CHV1, READ=NONE, ERASE=NEVER;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-01-15 14:08:54 +00:00
|
|
|
DF PKCS15-AppDF {
|
|
|
|
ACL = *=CHV4, FILES=NONE;
|
2004-06-16 20:59:59 +00:00
|
|
|
size = 20;
|
|
|
|
|
2010-01-15 14:08:54 +00:00
|
|
|
EF PKCS15-ODF {
|
|
|
|
size = 512;
|
|
|
|
}
|
|
|
|
|
|
|
|
EF PKCS15-AODF {
|
|
|
|
size = 512;
|
|
|
|
}
|
|
|
|
|
|
|
|
EF PKCS15-CDF {
|
|
|
|
size = 3072;
|
|
|
|
}
|
|
|
|
|
|
|
|
EF PKCS15-PrKDF {
|
|
|
|
size = 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
EF PKCS15-PuKDF {
|
|
|
|
size = 1024;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
|
2010-01-15 14:08:54 +00:00
|
|
|
EF PKCS15-DODF {
|
|
|
|
size = 512;
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
}
|
2010-01-15 14:08:54 +00:00
|
|
|
}
|
2004-06-16 20:59:59 +00:00
|
|
|
}
|
|
|
|
|