help with firefox+dnie

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

help with firefox+dnie

Alejandro Vargas
My situation is it:

I got working my dnie with opensc 0.11.9 + propietary drivers. Firefox
signed the pages OK.

Now I upgraded to a newer distro: opensc 0.11.13 and after entering
pin and selecting the certificate, firefox sends the page and reports
this error:

sec_error_pkcs11_general_error

I red there are problems with newer firefox versions, then I
downloaded firefox 3.6.3 and the error is the same.
Then, I downloaded opensc 0.11.9 and again, the error is the same. (I
adjusted the driver versions)

I think it may be a problem with libopenssl, mozilla-opensc plugin or
something like this...

I configured opensc for debug lavel=9, and the log of with firefox is this:

http://217.11.101.18/log.txt



By the way: I compiled the free driver using the keys on the closed
one and it worked... sometimes. Magically it started giving an error
of "ssl_bad_cert_alert" after signing. This, problem and the fact I
can't redistribute the keys for access the card is why I insist on
using the closed driver. But now I am interested on get it working
almost for myself.
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: help with firefox+dnie

Alejandro Vargas
More info. Now tried to sign an openoffice documment. When trying to
add the certificate it does nothing.

I think the problem may be there:

[opensc-pkcs11] framework-pkcs15.c:2299:pkcs15_prkey_sign: Sign
complete. Result -1201.
[opensc-pkcs11] misc.c:80:sc_to_cryptoki_error: opensc error: File not
found (-1201)


The full log when selecting the certificate follows:

[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about slot 0
[opensc-pkcs11] slot.c:86:card_detect: 0: Detecting smart card
[opensc-pkcs11] sc.c:196:sc_detect_card_presence: called
[opensc-pkcs11] reader-pcsc.c:266:refresh_slot_attributes: called
[opensc-pkcs11] sc.c:201:sc_detect_card_presence: returning with: 1
[opensc-pkcs11] slot.c:156:card_detect: 0: Detection ended
[opensc-pkcs11] pkcs11-session.c:179:C_GetSessionInfo:
C_GetSessionInfo(slot 0).
[opensc-pkcs11] pkcs11-session.c:179:C_GetSessionInfo:
C_GetSessionInfo(slot 0).
[opensc-pkcs11] pkcs11-object.c:237:C_FindObjectsInit:
C_FindObjectsInit(slot = 0)
[opensc-pkcs11] pkcs11-object.c:238:C_FindObjectsInit:
C_FindObjectsInit(): CKA_TOKEN = TRUE
[opensc-pkcs11] pkcs11-object.c:238:C_FindObjectsInit:
C_FindObjectsInit(): CKA_CLASS = CKO_CERTIFICATE
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/1:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/1:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/2:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/2:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/3:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/3:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/4:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/4:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/5:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/5:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/6:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/6:
Attribute 0x0 matches.
[opensc-pkcs11] pkcs11-object.c:296:C_FindObjectsInit: Object 0/6
matches
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/7:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/7:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/8:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/8:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/9:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/9:
Attribute 0x0 matches.
[opensc-pkcs11] pkcs11-object.c:296:C_FindObjectsInit: Object 0/9
matches
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/10:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/10:
Attribute 0x0 matches.
[opensc-pkcs11] pkcs11-object.c:296:C_FindObjectsInit: Object 0/10
matches
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/11:
Attribute 0x1 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/11:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:307:C_FindObjectsInit: 3 matching
objects
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_TOKEN = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_LABEL = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_TOKEN = TRUE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_LABEL = CertAutenticacion
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_TOKEN = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_LABEL = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_TOKEN = TRUE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_LABEL = CertFirmaDigital
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_TOKEN = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_LABEL = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_TOKEN = TRUE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_LABEL = CertCAIntermediaDGP
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_CLASS = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_TOKEN = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_LABEL = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_CERTIFICATE_TYPE = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_ID = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_VALUE = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_ISSUER = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_SERIAL_NUMBER = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_SUBJECT = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_CLASS = CKO_CERTIFICATE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_TOKEN = TRUE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_LABEL = CertAutenticacion
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_CERTIFICATE_TYPE = CKC_X_509
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_ID = 4138364336413431393741373241313230313030373236313030383432
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_VALUE = 308205D6308204BEA003020102020444D68197300D06092A864886F70D010105
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_ISSUER = 305C310B300906035504061302455331283026060355040A0C1F444952454343
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_SERIAL_NUMBER = 44D68197
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
CKA_SUBJECT = 3074310B30090603550406130245533112301006035504051309303938303236
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 6:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_CLASS = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_TOKEN = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_LABEL = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_CERTIFICATE_TYPE = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_ID = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_VALUE = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_ISSUER = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_SERIAL_NUMBER = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_SUBJECT = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_CLASS = CKO_CERTIFICATE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_TOKEN = TRUE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_LABEL = CertFirmaDigital
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_CERTIFICATE_TYPE = CKC_X_509
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_ID = 4638364336413431393741373241313230313030373236313030383432
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_VALUE = 308205CD308204B5A003020102020444D68198300D06092A864886F70D010105
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_ISSUER = 305C310B300906035504061302455331283026060355040A0C1F444952454343
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_SERIAL_NUMBER = 44D68198
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_SUBJECT = 306B310B30090603550406130245533112301006035504051309303938303236
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_CLASS = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_TOKEN = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_LABEL = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_CERTIFICATE_TYPE = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_ID = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_VALUE = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_ISSUER = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_SERIAL_NUMBER = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_SUBJECT = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_CLASS = CKO_CERTIFICATE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_TOKEN = TRUE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_LABEL = CertCAIntermediaDGP
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_CERTIFICATE_TYPE = CKC_X_509
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_ID = 5338364336413431393741373241313230313030373236313030383432
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_VALUE = 308205C5308203ADA00302010202107C490FED70D1E28B44057F6E8D1248A330
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_ISSUER = 305D310B300906035504061302455331283026060355040A0C1F444952454343
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_SERIAL_NUMBER = 7C490FED70D1E28B44057F6E8D1248A3
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
CKA_SUBJECT = 305C310B300906035504061302455331283026060355040A0C1F444952454343
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 10:
Attribute 0xce534352 = <size inquiry>
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 1
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 2
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 3
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 4
[opensc-pkcs11] slot.c:86:card_detect: 1: Detecting smart card
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 5
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 6
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 7
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 8
[opensc-pkcs11] slot.c:86:card_detect: 2: Detecting smart card
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 9
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 10
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 11
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 12
[opensc-pkcs11] slot.c:86:card_detect: 3: Detecting smart card
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 13
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 14
[opensc-pkcs11] pkcs11-global.c:436:C_GetSlotInfo: Getting info about
slot 15
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_ID = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_CLASS = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_ID = 4638364336413431393741373241313230313030373236313030383432
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_CLASS = CKO_CERTIFICATE
[opensc-pkcs11] pkcs11-object.c:237:C_FindObjectsInit:
C_FindObjectsInit(slot = 0)
[opensc-pkcs11] pkcs11-object.c:238:C_FindObjectsInit:
C_FindObjectsInit(): CKA_ID =
4638364336413431393741373241313230313030373236313030383432
[opensc-pkcs11] pkcs11-object.c:238:C_FindObjectsInit:
C_FindObjectsInit(): CKA_CLASS = CKO_PRIVATE_KEY
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/1:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/2:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/3:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/4:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/5:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/6:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/7:
Attribute 0x102 matches.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/7:
Attribute 0x0 matches.
[opensc-pkcs11] pkcs11-object.c:296:C_FindObjectsInit: Object 0/7
matches
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/8:
Attribute 0x102 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/8:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/9:
Attribute 0x102 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/9:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/10:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/11:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:307:C_FindObjectsInit: 1 matching
objects
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_ID = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_CLASS = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_ID = 4638364336413431393741373241313230313030373236313030383432
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 9:
CKA_CLASS = CKO_CERTIFICATE
[opensc-pkcs11] pkcs11-object.c:237:C_FindObjectsInit:
C_FindObjectsInit(slot = 0)
[opensc-pkcs11] pkcs11-object.c:238:C_FindObjectsInit:
C_FindObjectsInit(): CKA_ID =
4638364336413431393741373241313230313030373236313030383432
[opensc-pkcs11] pkcs11-object.c:238:C_FindObjectsInit:
C_FindObjectsInit(): CKA_CLASS = CKO_PRIVATE_KEY
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/1:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/2:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/3:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/4:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/5:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/6:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/7:
Attribute 0x102 matches.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/7:
Attribute 0x0 matches.
[opensc-pkcs11] pkcs11-object.c:296:C_FindObjectsInit: Object 0/7
matches
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/8:
Attribute 0x102 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/8:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:290:C_FindObjectsInit: Object 0/9:
Attribute 0x102 matches.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/9:
Attribute 0x0 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/10:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:281:C_FindObjectsInit: Object 0/11:
Attribute 0x102 does NOT match.
[opensc-pkcs11] pkcs11-object.c:307:C_FindObjectsInit: 1 matching
objects
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 7:
CKA_KEY_TYPE = CKK_RSA
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 7:
CKA_TOKEN = TRUE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 7:
CKA_PRIVATE = TRUE
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 7:
CKA_MODULUS = <size inquiry>
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 7:
CKA_MODULUS = F68B8CCA3411F89EC6F80F97650B642479619C169AED7229CB646AD3E2F76F3D
[opensc-pkcs11] pkcs11-object.c:151:C_GetAttributeValue: Object 7:
CKA_PRIVATE = TRUE
[opensc-pkcs11] pkcs11-session.c:40:C_OpenSession: Opening new session
for slot 0
[opensc-pkcs11] pkcs11-object.c:512:C_SignInit: Sign initialization
returns 0
[opensc-pkcs11] framework-pkcs15.c:2220:pkcs15_prkey_sign: Initiating
signing operation, mechanism 0x1.
[opensc-pkcs11] card.c:285:sc_lock: called
[opensc-pkcs11] framework-pkcs15.c:2279:pkcs15_prkey_sign: Selected
flags 12. Now computing signature for 35 bytes. 256 bytes reserved.
[opensc-pkcs11] pkcs15-sec.c:150:sc_pkcs15_compute_signature: called
[opensc-pkcs11] card.c:285:sc_lock: called
[opensc-pkcs11] card.c:532:sc_select_file: called; type=2,
path=3f003f110102
[opensc-pkcs11] base_card.c:936:card_select_file: called
[opensc-pkcs11] base_card.c:975:card_select_file: Selecting 3f00
[opensc-pkcs11] base_card.c:979:card_select_file: File selected
successfully
[opensc-pkcs11] base_card.c:975:card_select_file: Selecting 3f003f11
[opensc-pkcs11] base_card.c:979:card_select_file: File selected
successfully
[opensc-pkcs11] base_card.c:975:card_select_file: Selecting
3f003f110102
[opensc-pkcs11] base_card.c:986:card_select_file: File selection
failed
[opensc-pkcs11] base_card.c:1034:card_select_file: returning with:
File not found
[opensc-pkcs11] card.c:554:sc_select_file: returning with: File not
found
[opensc-pkcs11] pkcs15-sec.c:56:select_key_file: sc_select_file()
failed: File not found
[opensc-pkcs11] card.c:312:sc_unlock: called
[opensc-pkcs11] pkcs15-sec.c:260:sc_pkcs15_compute_signature: Unable
to select private key file: File not found
[opensc-pkcs11] card.c:312:sc_unlock: called
[opensc-pkcs11] framework-pkcs15.c:2299:pkcs15_prkey_sign: Sign
complete. Result -1201.
[opensc-pkcs11] misc.c:80:sc_to_cryptoki_error: opensc error: File not
found (-1201)
[opensc-pkcs11] pkcs11-object.c:554:C_Sign: Signing result was 5
[opensc-pkcs11] pkcs11-session.c:131:C_CloseSession: C_CloseSession(2)
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: help with firefox+dnie

Jean-Michel Pouré - GOOZE
On Sat, 2010-08-07 at 12:37 +0200, Alejandro Vargas wrote:
> More info. Now tried to sign an openoffice documment. When trying to
> add the certificate it does nothing.

What do you mean by proprietary drivers?

I never used a Spanish dnie, but I can only recommend you to use OpenSC
latest SVN version. It fixed a lot of issues for me.

Kind regards,
--
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user

smime.p7s (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: help with firefox+dnie

Martin Paljak-2

On Aug 10, 2010, at 6:18 PM, Jean-Michel Pouré - GOOZE wrote:

> On Sat, 2010-08-07 at 12:37 +0200, Alejandro Vargas wrote:
>> More info. Now tried to sign an openoffice documment. When trying to
>> add the certificate it does nothing.
>
> What do you mean by proprietary drivers?

Proprietary driver in the context of DNIe means the "forked" OpenSC based dynamic driver. See OpenSC ticket #205 [1]

[1] http://www.opensc-project.org/opensc/ticket/205
--
Martin Paljak
@martinpaljak.net
+3725156495

_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: help with firefox+dnie

Martin Paljak-2
In reply to this post by Alejandro Vargas
Hello,

On Aug 7, 2010, at 11:56 AM, Alejandro Vargas wrote:

> My situation is it:
>
> I got working my dnie with opensc 0.11.9 + propietary drivers. Firefox
> signed the pages OK.


Sorry, you're using the proprietary code which almost nobody here knows.
The reasons for failure are quite simple:

[opensc-pkcs11] card_sync.c:995:card_sync_card_to_virtual_fs_data_file_callback: returning with: Security status not satisfied
[opensc-pkcs11] pkcs15-sec.c:260:sc_pkcs15_compute_signature: Unable to select private key file: File not found

But why they happen, is hard to say as the card has no docs nor are the people who wrote the forked driver interested in cooperation, apparently.

You can try asking people on kriptopolis.org

--
Martin Paljak
@martinpaljak.net
+3725156495

_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user