From 2bab09ac03d630e2ab273628a5e340e0d207dd3c Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 3 Dec 2019 13:56:37 +0100 Subject: [PATCH] tcos: Use unique IDs for certificates --- src/libopensc/pkcs15-tcos.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libopensc/pkcs15-tcos.c b/src/libopensc/pkcs15-tcos.c index 1d680f1c..3957b240 100644 --- a/src/libopensc/pkcs15-tcos.c +++ b/src/libopensc/pkcs15-tcos.c @@ -377,8 +377,9 @@ static int detect_idkey( p15card->tokeninfo->label = strdup("IDKey Card"); insert_cert(p15card, "DF074331", 0x45, 1, "Signatur Zertifikat 1"); - insert_cert(p15card, "DF074332", 0x45, 1, "Signatur Zertifikat 2"); - insert_cert(p15card, "DF074333", 0x45, 1, "Signatur Zertifikat 3"); + insert_cert(p15card, "DF074332", 0x46, 1, "Signatur Zertifikat 2"); + insert_cert(p15card, "DF074333", 0x47, 1, "Signatur Zertifikat 3"); + /* TODO should others come here too? */ insert_key(p15card, "DF074E03", 0x45, 0x84, 2048, 1, "IDKey1"); insert_key(p15card, "DF074E04", 0x46, 0x85, 2048, 1, "IDKey2");