No, I was wrong. The dh params were created in the right place.

This commit is contained in:
Joris Vink 2015-05-06 10:21:54 +02:00
parent 5b462f3ab6
commit 48495feb43
1 changed files with 3 additions and 5 deletions

View File

@ -368,11 +368,6 @@ cli_build(int argc, char **argv)
}
free(cpath);
(void)cli_vasprintf(&cpath, "%s/dh2048.pem", rootdir);
if (!cli_file_exists(cpath))
cli_file_create("dh2048.pem", dh2048_data, strlen(dh2048_data));
free(cpath);
if (requires_relink) {
cli_spawn_proc(cli_link_library, NULL);
printf("%s built succesfully!\n", appl);
@ -778,6 +773,9 @@ cli_generate_certs(void)
RSA *kpair;
char *fpath, issuer[64];
/* Write out DH parameters. */
cli_file_create("dh2048.pem", dh2048_data, strlen(dh2048_data));
/* Create new certificate. */
if ((x509 = X509_new()) == NULL)
cli_fatal("X509_new(): %s", ssl_errno_s);