Skip to content
Snippets Groups Projects
Commit cdd2eb20 authored by Niels Möller's avatar Niels Möller
Browse files

(main): Comment on the lax security of the

private key file.

Rev: src/nettle/examples/rsa-keygen.c:1.6
parent a0c3820c
No related branches found
No related tags found
No related merge requests found
...@@ -143,6 +143,8 @@ main(int argc, char **argv) ...@@ -143,6 +143,8 @@ main(int argc, char **argv)
return EXIT_FAILURE; 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)) if (!write_file(priv_name, priv_buffer.size, priv_buffer.contents))
{ {
werror("Failed to write private key: %s\n", werror("Failed to write private key: %s\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment