Closed Bug 437804 Opened 18 years ago Closed 17 years ago

certutil -R for cert renewal should derive the subject from the cert if none is specified.

Categories

(NSS :: Tools, enhancement, P2)

3.12
enhancement

Tracking

(Not tracked)

RESOLVED FIXED
3.12.2

People

(Reporter: elio.maldonado.batiz, Assigned: elio.maldonado.batiz)

Details

Attachments

(1 file, 3 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080416 Fedora/2.0.0.14-1.fc8 Firefox/2.0.0.14 Build Identifier: nss-3.12.0.3 Certutil has a way to request a certificate with an existing key (#341371). The user must provide the subject which should be optional as it can be obtained from the cert itself. Use case: certutil -R -s $subject -k $nickname \ #<---- instead of rsa use nickname -y $publicExponent -t $trust_args -d $dir -o $outcsrfile ... other arguments The -k nickname option enables finding the cert, from which the keys are obtained, the subject could be obtained from the cert. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Version: unspecified → 3.12
Possible implementation for review.
Upgrading severity from enhancement to normal as this bug blocks porting fedora crypto-utils (certificate management) tools to use NSS for their cryptographic operations, please see https://bugzilla.redhat.com/show_bug.cgi?id=346731 for more information.
Severity: enhancement → normal
fix a memory leak on previous attachement
Attachment #324143 - Attachment is obsolete: true
Attachment #330683 - Attachment is obsolete: true
I confirm this is an enhancement request :)
Assignee: nobody → emaldona
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Target Milestone: --- → 3.12.1
Status: NEW → ASSIGNED
Attachment #330795 - Flags: review?(rrelyea)
Comment on attachment 330795 [details] [diff] [review] fix bad indentation in previous attachement r- but close. There is one minor issue and a nit. minor issue (caused the r-): > PR_fprintf(PR_STDERR, "%s -s: improperly formatted name: \"%s\"\n", >+ progName, certutil.options[opt_Subject].arg); This is incorrect. it should read something like "%s couldn't get subject from certificate %s", progname, keysource); The current error message is for the case where the user supplied the subject.
Attachment #330795 - Flags: review?(rrelyea) → review-
arg, missed the nit. You are adding a nested 'if' inside a compound if. Simply add another && clause. bob
Attachment #330795 - Attachment is obsolete: true
Attachment #335482 - Flags: review?(rrelyea)
Comment on attachment 335482 [details] [diff] [review] Fixes from review comments #6 and #7 r+
Attachment #335482 - Flags: review?(rrelyea) → review+
Checked in mozilla/security/nss/cmd/certutil/certutil.c, v1.143.
Target Milestone: 3.12.1 → 3.12.2
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: