Commit cdd2eb20 authored by Niels Möller's avatar Niels Möller

(main): Comment on the lax security of the

private key file.

Rev: src/nettle/examples/rsa-keygen.c:1.6
parent a0c3820c
......@@ -143,6 +143,8 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
/* NOTE: This doesn't set up paranoid access restrictions on the
* private key file, like a serious key generation tool would do. */
if (!write_file(priv_name, priv_buffer.size, priv_buffer.contents))
{
werror("Failed to write private key: %s\n",
......
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