0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

modules/s_keys: Disable dhparam generation here.

This commit is contained in:
Jason Volk 2018-08-29 16:17:25 -07:00
parent a4bb471cf7
commit 72f77b6d22

View file

@ -85,11 +85,6 @@ init_my_tls_crt()
fs::make_path(public_key_path_parts) fs::make_path(public_key_path_parts)
}; };
const std::string dhparam_file
{
fs::make_path(dhparam_path_parts)
};
const std::string cert_file const std::string cert_file
{ {
fs::make_path(certificate_path_parts) fs::make_path(certificate_path_parts)
@ -106,6 +101,12 @@ init_my_tls_crt()
openssl::genrsa(private_key_file, public_key_file); openssl::genrsa(private_key_file, public_key_file);
} }
/*
const std::string dhparam_file
{
fs::make_path(dhparam_path_parts)
};
if(!fs::exists(dhparam_file)) if(!fs::exists(dhparam_file))
{ {
log::warning log::warning
@ -117,6 +118,7 @@ init_my_tls_crt()
openssl::gendh(dhparam_file); openssl::gendh(dhparam_file);
} }
*/
const json::object config{}; const json::object config{};
if(!fs::exists(cert_file)) if(!fs::exists(cert_file))