On Thu, Dec 03, 2009 at 10:13:40PM +0000, João Poupino wrote:
>
> 0x9C02 is "Auth Failed". Are you sure you have entered the correct PIN?

It didn't ask for a PIN.

> Try this, just to be sure: set all PINs (including the ones in  
> pkcs15-init) to 00000000. Then try the same operation. If it works, I  
> think I know the solution.
All keys are set to 00000000 anyway...
I've also tried to directly specify the key on the openssl command line:

% openssl req -passin pass:00000000 -days 3650 -new -out $CLIENT.csr -config 
openssl.cnf -engine pkcs11 -keyform engine -key 0:45 -sha1
engine "pkcs11" set.
[opensc-pkcs11] iso7816.c:102:iso7816_check_sw: Unknown SWs; SW1=9C, SW2=02
[opensc-pkcs11] sec.c:201:sc_pin_cmd: returning with: Card command failed
Login failed
PKCS11_get_private_key returned NULL
unable to load Private Key
714:error:80005005:Vendor defined:PKCS11_login:General Error:p11_slot.c:145:
714:error:26096080:engine routines:ENGINE_load_private_key:failed loading 
private key:eng_pkey.c:114:

But another poster on the list claimed that I had to format the
token first using muscleTool. So far I haven't been able to do that.
Strange that the pkcs15-init works without formatting, though.

Thanks, Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  Fax:   +43/2243/26465-23
Reichergasse 131                        www:   http://www.runtux.com
A-3411 Weidling                         email: [email protected]
osAlliance member                       email: [email protected]

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to