Ticket #8 (closed defect: fixed)

NB! Read about ReportingBugs before filing a ticket!

Opened 7 years ago

Last modified 6 years ago

pkcs11-tools gives error signing with an infocamere card

Reported by: giuseppe@… Owned by: anonymous
Priority: high Milestone: 0.10.0?
Component: pkcs11 Version: 0.10.0
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description (last modified by martin) (diff)

Hi, I just recompiled opensc from CVS and found a problem in pkcs11-tools. This is the last part of the output produced, when debug is set to 9 in opensc.conf, by the commando pkcs11-tool -s -i fileA -o fileB:

[...]
framework-pkcs15.c:788:pkcs15_login: PIN verification returned 0
pkcs11-object.c:210:C_FindObjectsInit: C_FindObjectsInit(slot = 0)
pkcs11-object.c:211:C_FindObjectsInit: C_FindObjectsInit(): CKA_CLASS = CKO_PRIVATE_KEY
pkcs11-object.c:263:C_FindObjectsInit: Object 0/1: Attribute 0x0 matches.
pkcs11-object.c:269:C_FindObjectsInit: Object 0/1 matches
pkcs11-object.c:254:C_FindObjectsInit: Object 0/2: Attribute 0x0 does NOT match.
pkcs11-object.c:254:C_FindObjectsInit: Object 0/3: Attribute 0x0 does NOT match.
pkcs11-object.c:280:C_FindObjectsInit: 1 matching objects
Using signature algorithm RSA-X-509
pkcs11-object.c:485:C_SignInit: Sign initialization returns 0
pkcs11-object.c:547:C_SignUpdate: C_SignUpdate returns 0
pkcs11-object.c:547:C_SignUpdate: C_SignUpdate returns 33
error: PKCS11 function C_SignUpdate failed: rv = CKR_DATA_LEN_RANGE (0x21)

Aborting.

Change History

comment:1 Changed 7 years ago by martin

  • Description modified (diff)

comment:2 Changed 7 years ago by Nils <nils@…>

  • Owner changed from devel to anonymous
  • Priority changed from normal to high
  • Status changed from new to assigned
  • Milestone set to 0.10.0?

comment:3 Changed 7 years ago by nils

  • Status changed from assigned to closed
  • Resolution set to fixed

the problem was caused by a wrong key ID. I have disabled the key until we have the real key id. Case closed.

Note: See TracTickets for help on using tickets.