Closed Bug 306728 Opened 19 years ago Closed 9 years ago

nsIX509CertDB::ImportCertsFromFile doesn't tell me how many certs were imported

Categories

(Core :: Security: PSM, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: sfraser_bugs, Unassigned)

Details

(Whiteboard: [kerh-ehz])

I'm calling nsIX509CertDB::ImportCertsFromFile in an embedding app to allow the
user to import certs from files.

However, nsIX509CertDB::ImportCertsFromFile() doesn't tell me how many certs
were in the file, and how many of those were imported successfully; even if none
of the certs were imported (because their validity check failed), the method
just returns NS_OK.

This prevents me from creating a good user experience; I can't tell the user why
no new certs appear when they try to import.

Also, I wonder why this method has to check the cert chain before importing. Why
not just import all the certs, even if they don't have valid chains? Shouldn't I
be able to make the chain valid later by adding an issuer cert?
Whiteboard: [kerh-ehz]
QA Contact: psm
reassign bug owner.
mass-update-kaie-20120918
Assignee: kaie → nobody
It doesn't seem like this is an urgently-needed feature.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.