Closed
Bug 340909
Opened 18 years ago
Closed 18 years ago
certutil batch mode is not in usage and should be command rather than option
Categories
(NSS :: Tools, enhancement, P2)
NSS
Tools
Tracking
(Not tracked)
RESOLVED
FIXED
3.11.2
People
(Reporter: julien.pierre, Assigned: julien.pierre)
Details
Attachments
(1 file)
7.40 KB,
patch
|
nelson
:
review+
|
Details | Diff | Splinter Review |
When this batch mode was added in bug 214397 , it was not put in the usage. I think it's time we put it in there. But it should be a command rather than an option. At the present time, you must specify any command of certutil (such as -L) and -B batch-file. I propose to change the syntax to a command, with the syntax of certutil -B -i batch-file . This should be OK since -B was not documented. My main problem was that I ran certutil -L -B batch-file . But the command -L caused certutil to open the NSS DB in read-only mode. And then my other certutil commands (such as -A) which required read-write failed ! But of course no sensible error was reported; I had to debug this all the way into softoken to find out why. I think it's safe to say that in batch mode we never want to open read-only.
Assignee | ||
Updated•18 years ago
|
Assignee: nobody → julien.pierre.bugs
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #224947 -
Flags: review?(nelson)
Comment 2•18 years ago
|
||
Comment on attachment 224947 [details] [diff] [review] change -B to a command, use -i for the batch file name, and fix usage Do any test scripts use the -B feature? (e.g. all.sh ?) if so, they need to be modified, and the checkins for those modifications should accomplany this checkin. I might also suggest that -i be optional, and stdin should be used in its absence. But that can be a further enhancement.
Attachment #224947 -
Flags: review?(nelson) → review+
Assignee | ||
Comment 3•18 years ago
|
||
No test scripts currently use -B to my knowledge. I was trying to use the batch feature to reproduce a bug in our cert code that is not easy to reproduce. Unfortunately so far I haven't succeeded; I may just have to write a separate test program. I checked this in to the tip : Checking in certutil.c; /cvsroot/mozilla/security/nss/cmd/certutil/certutil.c,v <-- certutil.c new revision: 1.104; previous revision: 1.103 done As well as the branch : Checking in certutil.c; /cvsroot/mozilla/security/nss/cmd/certutil/certutil.c,v <-- certutil.c new revision: 1.97.2.6; previous revision: 1.97.2.5 done
Severity: normal → enhancement
Status: NEW → RESOLVED
Closed: 18 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 3.11.2
You need to log in
before you can comment on or make changes to this bug.
Description
•