Ticket #75 (new defect)

Opened 3 years ago

Last modified 3 years ago

pkcs11-tool --sign ignores object id/label

Reported by: anonymous Owned by: opensc-devel@…
Priority: normal Milestone:
Component: opensc Version: 0.10.1
Severity: normal Keywords:
Cc:

Description

Hello,

In pkcs11-tool.c:

if (do_sign) {

if (!find_object(session, CKO_PRIVATE_KEY, &object, NULL, 0, 0))

fatal("Private key not found");

}

It searches for the first? key?!?! Should search for the specified --id or --label key.

Best Regards, Alon Bar-Lev.

Change History

Changed 3 years ago by alon.barlev@…

  • version changed from 0.10.1-rc1 to 0.10.1

Oh... WIKI...

       if (do_sign) {
                if (!find_object(session, CKO_PRIVATE_KEY, &object, NULL, 0, 0))
                        fatal("Private key not found");
        }
Note: See TracTickets for help on using tickets.