Closed Bug 1331867 Opened 4 years ago Closed 4 years ago

nss db --list-certs creates db

Categories

(NSS :: Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: franziskus, Assigned: stefan.gschiel.sg)

Details

Calling nss db --list-certs creates a database in the the directory it's looking. That's unexpected as the command says list-certs. I'd expect the command to warn me that there is no db in the provided path.
How about adding a "nss db --create --path /foo/bar" command? And never creating a DB automatically? That seems like a reasonable behavior.
Ok will make a patch for it.
The database files are created by NSS_Initialize, I think.
And for the nss db --list-certs I could use NSS_Initialize with NSS_INIT_READONLY.

Or is there some better function than NSS_Initialize for just creating the database files?
(In reply to stefan.gschiel.sg from comment #2)
> And for the nss db --list-certs I could use NSS_Initialize with
> NSS_INIT_READONLY.

Sounds good.

> Or is there some better function than NSS_Initialize for just creating the
> database files?

Unfortunately not. At least I'm somewhat sure there aren't.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: 3.29 → 3.30
You need to log in before you can comment on or make changes to this bug.