After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336305 - Cannot import certificates: "Password for NSS User Private Key"
Cannot import certificates: "Password for NSS User Private Key"
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Importers
2.6.x (obsolete)
Other All
: Normal major
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
evolution[passwords]
Depends on:
Blocks:
 
 
Reported: 2006-03-28 07:41 UTC by karlheg
Modified: 2010-09-18 22:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
ldd =evolution-2.6 on AMD64 (6.82 KB, text/plain)
2006-03-29 01:11 UTC, karlheg
Details
ldd =evolution-2.6 on i386 (6.22 KB, text/plain)
2006-03-29 01:13 UTC, karlheg
Details
Difference between ldd before and after on i386 (1.27 KB, text/plain)
2006-03-29 03:01 UTC, karlheg
Details

Description karlheg 2006-03-28 07:41:47 UTC
Please describe the problem:
I exported a certificate from Firefox, and Evolution refuses to import it.  I
get a dialog that says:

 Enter the password for `NSS User Private Key and Certificate Services'

That string does not appear anywhere in the Evolution source, but does appear in
the Mozilla sources.  I don't know what password it is asking for.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 André Klapper 2006-03-29 00:19:04 UTC
make sure you're using the right password - there could be more than one, e.g. the one for the exported certs, and one for the certificate db.
Comment 2 André Klapper 2006-03-29 00:22:53 UTC
also see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=185285

dave, cc'ing you. can you add an upstream link to the redhat bug? thanks in advance.
Comment 3 karlheg 2006-03-29 01:09:59 UTC
The version of Evolution I was using is: 2.6.0-0ubuntu3, i386, from "Dapper Drake", fresh daily.  I just tried it again with the same release number but for amd64, also running "Dapper Drake" fresh daily, and it DOES work.  There was more dialogs, but it got past the NSS one and presented the one Evolution creates.

Attached are the 'ldd' outputs from each computer.



 
Comment 4 karlheg 2006-03-29 01:11:48 UTC
Created attachment 62260 [details]
ldd =evolution-2.6 on AMD64

Notice that the libnss3 is coming from /usr/lib/ on this machine.
Comment 5 karlheg 2006-03-29 01:13:33 UTC
Created attachment 62261 [details]
ldd =evolution-2.6 on i386

Notice that libnss3 is being linked from /usr/lib/mozilla on this i386 machine.
Comment 6 karlheg 2006-03-29 01:21:21 UTC
ld.so.conf on the i386 contains only "/usr/lib/atlas", and on the amd64 it contains that plus entries for the 32-bit libraries, so nothing unusual on either box.

The version of 'mozilla-browser' is the same on both machines, 2:1.7.12-1.1ubuntu2.  That of 'mozilla-psm' is also the same, 2:1.7.12-1.1ubuntu2, matching that of the browser.

My guess is that there should be a 'Build-Conflicts' declared for 'mozilla-dev', and that it was installed on the i386 build host, but not on the amd64 one.

Q: Does the Ubuntu/Debian 'Evolution' maintainer crew follow this tracker?  I'll drop a heads-up on their list to be sure.  :-)
Comment 7 André Klapper 2006-03-29 01:35:14 UTC
hi karlheg,
thanks a lot for investigating, we really appreciate your work.
Comment 8 karlheg 2006-03-29 02:45:04 UTC
The rebuild did not fix the problem.  It was still linking against /usr/lib/mozilla/libnss3.so.  I removed the 'mozilla-browser' package, and now it's linking against /usr/lib/libnss3.so.

I don't know how to fix that, and am interested in knowing how to do it.
Comment 9 karlheg 2006-03-29 03:01:50 UTC
Created attachment 62263 [details]
Difference between ldd before and after on i386

 perl -p -e 's/ \([^\)]+\)//' < ldd-evo-i386.txt > ldd-evo-i386-noaddr.txt
 perl -p -e 's/ \([^\)]+\)//' < ldd-evo-i386_2.txt > ldd-evo-i386-noaddr_2.txt
 diff -u ldd-evo-i386-noaddr.txt ldd-evo-i386-noaddr_2.txt > ldd-evo.diff

Even after the rebuild and removal of 'mozilla-browser', so that now it's linking against the same (ostensibly) versions of the same libraries as the one that works on amd64, it refuses to import the identical certificate.  The behaviour is exactly the same --- the NSS dialog keeps reappearing each time I type the password.
Comment 10 Marco Arioli 2006-06-20 10:16:50 UTC
I have the same problem in Evolution 2.6.2. 
I can't import any certs because evolution keeps on asking the "NSS User Private Key and Certificate Services" even if the cert passphrase is correct. What's the matter?
And I don't understand which libnss3, libsmime ecc. evolution should be linked to. To those of mozilla (firefox) or what? But packages NSS and NSPR come from mozilla group...

I was only able to import a selfsigned root CA certificate made with openssl.

Thanx,
Marco
Comment 11 André Klapper 2006-06-20 10:53:21 UTC
marco: which distribution are you using?

confirming as per duplicate.
Comment 12 André Klapper 2006-06-20 10:56:53 UTC
marco: ...and please also provide your architecture (64bit or 32bit?)
Comment 13 Marco Arioli 2006-06-20 12:55:10 UTC
Platform: 32 bit
Distribution: Slackware 10.2
Package: Evolution 2.6.2 (and prerequisite) from Dropline GNOME 2.14.2

Comment 14 André Klapper 2006-11-13 14:28:19 UTC
also see bug 337060
Comment 15 Hussam Al-Tayeb 2007-11-13 03:23:45 UTC
Under evolution 2.12.1, both the passwords for nss certificate db and backup passwords fail. Idealy evolution should ask for both. the backup password first then the nss certicifate db password second.
This works in applications such as openoffice which actually reads certificates directly from the user's firefox profile.

Also, I remember this worked in evolution 2.10 but is now broken in 2.12
Comment 16 Hussam Al-Tayeb 2008-04-21 23:12:34 UTC
Can someone who has evo and evo-data-server build against nss 3.12beta check if they still get this bug?
Comment 17 Hussam Al-Tayeb 2008-06-24 16:18:41 UTC
This is fixed with evolution running against system nss 3.12rc4 here.
Please confirm.
Comment 18 Hussam Al-Tayeb 2008-12-20 03:22:54 UTC
Ping?
The wording in latest stable evolution running nss 3.12.x doesn't exhibit this bug here and importing certificates now accepts the nss security password.
Please look into this. It looks fixed to me.
Comment 19 Hussam Al-Tayeb 2010-07-31 14:06:20 UTC
works for me under evolution 2.30
Comment 20 Pablo Castellano (IRC: pablog) 2010-09-18 22:07:50 UTC
I can confirm that Evolution is able to import a certificate exported by Firefox.
Evolution 2.28.3 and libnss 3.12.6.

Closing bug...