Commit 92fbde31 authored by Gary Wong's avatar Gary Wong

Add comments to earlier commit.

It took me so long to find this stupid bug, I don't want future me
to have to hunt for it again...
parent 2c4dba27
......@@ -754,6 +754,9 @@ sub WriteToFile($;$)
}
print $tempfile "-----END RSA PRIVATE KEY-----\n";
}
# Close the file handle... partly to avoid a file descriptor leak,
# but most importantly to flush the file so subsequent reads actually
# retrieve the certificate!!!
close $tempfile;
return $filename;
}
......@@ -1041,6 +1044,9 @@ sub WriteKeyToFile($)
print $tempfile $self->privkey();
print $tempfile "-----END RSA PRIVATE KEY-----\n";
# Close the file handle... partly to avoid a file descriptor leak,
# but most importantly to flush the file so subsequent reads actually
# retrieve the key!!!
close $tempfile;
return $filename;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment