Skip to content

Commit

Permalink
Removed blank lines in pki nss-cert-export output
Browse files Browse the repository at this point in the history
The pki nss-cert-export has been modified to remove the extra
blank lines between certs and at the end of the output.
  • Loading branch information
edewata committed Aug 12, 2020
1 parent 2df13c4 commit eb28b09
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -107,7 +107,7 @@ public void execute(CommandLine cmd) throws Exception {
buffer.append("\r\n");
buffer.append(Utils.base64encodeMultiLine(encoded));
buffer.append(Cert.FOOTER);
buffer.append("\r\n\r\n");
buffer.append("\r\n");
}

output = buffer.toString().getBytes();
Expand All @@ -118,7 +118,8 @@ public void execute(CommandLine cmd) throws Exception {
}

if (path == null) {
System.out.println(new String(output));
System.out.print(new String(output));
System.out.flush();
} else {
try (FileOutputStream fos = new FileOutputStream(path)) {
fos.write(output);
Expand Down

0 comments on commit eb28b09

Please sign in to comment.