[Bug 712632] [NEW] Thunderbird crashes and creates an invalid email signature using a smart card

Christophe 712632 at bugs.launchpad.net
Thu Feb 3 17:36:17 UTC 2011


Public bug reported:

Binary package hint: thunderbird

Hi,

I'm trying to make thunderbird sign emails using a smart card. I'm able
to load the certificates into thunderbird, installed the corresponding
root certificates and assigned them to an identity. Please note, that
there are multiple certificates on the card, one for signing, one for
encrypting and one for client authentication, as far as I understand.
Please see pkcs15-tool and pcsc_scan output for more details on the
reader and the certificates.

When I'm trying to sign an email, I have to enter both pins in the
reader, afterwards two things happen. Sometimes thunderbird actually
signs the email, but the signature is wrong, if I try it a second time
thunderbird crashes.

I'll attach a wrongly signed email and a gdb session of thunderbird
crashing, including some strangs opensc error messages.


openssl smime -verify -in Desktop/huhu.eml -CAfile 12R-CA1:PN 
[...]
Verification failure
3117:error:04077077:rsa routines:RSA_verify:wrong signature length:rsa_sign.c:167:
3117:error:21071069:PKCS7 routines:PKCS7_signatureVerify:signature failure:pk7_doit.c:981:
3117:error:21075069:PKCS7 routines:PKCS7_verify:signature failure:pk7_smime.c:312:

thunderbird
[...]
[opensc-pkcs11] card-cardos.c:259:cardos_check_sw: required access right not granted
[opensc-pkcs11] card-cardos.c:784:do_compute_signature: returning with: Security status not satisfied
[opensc-pkcs11] sec.c:53:sc_compute_signature: returning with: Security status not satisfied
[opensc-pkcs11] pkcs15-sec.c:273:sc_pkcs15_compute_signature: sc_compute_signature() failed: Security status not satisfied
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc


I suspect that thunderbird mixes up the certificates and keys, because I have to enter both pins although it would only need one to sign an email.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: thunderbird 3.1.7+build3+nobinonly-0ubuntu0.10.10.1
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
Architecture: amd64
Date: Thu Feb  3 18:06:42 2011
EcryptfsInUse: Yes
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
SourcePackage: thunderbird

** Affects: thunderbird (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to thunderbird in ubuntu.
https://bugs.launchpad.net/bugs/712632

Title:
  Thunderbird crashes and creates an invalid email signature using a
  smart card




More information about the Ubuntu-mozillateam-bugs mailing list