GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
removecerts (argv[1], argv[2]);
(void) close (2); /* eliminate stderr */
/* Create RSA Private Key */
removecerts (argv[1], argv[2]);
(void) close (2); /* eliminate stderr */
/* Create RSA Private Key */
GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "openssl", "openssl", "genrsa",
"-out", argv[1], "1024", NULL);
if (NULL == openssl)
GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "openssl", "openssl", "genrsa",
"-out", argv[1], "1024", NULL);
if (NULL == openssl)
"-batch", "-days", "365", "-out", argv[2],
"-new", "-x509", "-key", argv[1], NULL);
if (NULL == openssl)
"-batch", "-days", "365", "-out", argv[2],
"-new", "-x509", "-key", argv[1], NULL);
if (NULL == openssl)
GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (openssl));
GNUNET_OS_process_destroy (openssl);
if (0 != CHMOD (argv[1], S_IRUSR))
GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (openssl));
GNUNET_OS_process_destroy (openssl);
if (0 != CHMOD (argv[1], S_IRUSR))