mirror of https://git.kore.io/kore.git
Always attempt to create dh2048.pem if not present
This commit is contained in:
parent
25578d9428
commit
5b462f3ab6
|
@ -368,6 +368,11 @@ 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);
|
||||
|
@ -773,9 +778,6 @@ 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);
|
||||
|
|
Loading…
Reference in New Issue