Missing line break in cert requests generated by certutil

RESOLVED FIXED in 3.7

Status

P2
normal
RESOLVED FIXED
16 years ago
16 years ago

People

(Reporter: nelson, Assigned: nelson)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

The certificate requests generated by commands like
certutil -R -a ...
should end with -----END NEW CERTIFICATE REQUEST----- on a separate line
by itself, e.g.

Bg==
-----END NEW CERTIFICATE REQUEST-----

But instead the string that marks the end of the request is always 
appended to the last line of the Base 64 encoded request, e.g. 

Bg==-----END NEW CERTIFICATE REQUEST-----
(Assignee)

Comment 1

16 years ago
Here's a patch:

--- certutil/certutil.c 26 Sep 2002 20:30:11 -0000      1.62
+++ certutil/certutil.c 15 Oct 2002 17:52:56 -0000
@@ -453,7 +453,7 @@
            SECU_PrintSystemError(progName, "write error");
            return SECFailure;
        }
-       PR_fprintf(outFile, "%s\n", NS_CERTREQ_TRAILER);
+       PR_fprintf(outFile, "\n%s\n", NS_CERTREQ_TRAILER);
     } else {
        numBytes = PR_Write(outFile, result.data, result.len);
        if (numBytes != (int)result.len) {
Status: NEW → ASSIGNED
(Assignee)

Comment 2

16 years ago
Fix checked in.
Status: ASSIGNED → RESOLVED
Last Resolved: 16 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 3.7
You need to log in before you can comment on or make changes to this bug.