Becky H
Tue, 09 Feb 2010 11:28:15 -0800
I may have found the answer to this question here--> http://www.etokenonlinux.org/et/FAQ
pkcs11-tool --module /usr/lib/libeTPkcs11.so --slot 0 -O --login
In the ouput search for a private key object and its ID.
Private Key Object; RSA
label: eTCAPI private key
ID:
39453945373335312d333545442d343031612d384637302d3238463636393036363042303a35
Usage: decrypt, sign, unwrap
When I use the 'ID' from the output of this pkcs11-tool command in the openssl
functions, I no longer receive errors.
________________________________
From: Becky H <becky_...@yahoo.com>
To: openssl-users@openssl.org
Sent: Tue, February 9, 2010 8:28:55 AM
Subject: What is key_id arg in load_private_key() and load_public_key()
Hello -
Two openssl functions require *key_id as an argument. What is this?
EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,
UI_METHOD *ui_method, void *callback_data);
EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id,
UI_METHOD *ui_method, void *callback_data);
>From examples I've found on the internet, it appears to be some type of slot
>id
for a USB token. If this is true, how do I find the id? I am using a Aladdin
token
on a Linux system.
Thank you.