Fix openssl Bug

This commit is contained in:
Boris Kuschel 2022-12-16 12:31:17 -08:00
parent abcc114768
commit 1b7c5758d2
No known key found for this signature in database
GPG Key ID: A2097280F581F760

View File

@ -748,8 +748,8 @@ try
else
{
const String config_path = config().getString("config-file", "config.xml");
const auto config_dir = std::filesystem::path{config_path}.remove_filename();
setenv("OPENSSL_CONF", config_dir.string() + "openssl.conf", true);
const auto config_dir = std::filesystem::path{config_path}.replace_filename("openssl.conf");
setenv("OPENSSL_CONF", config_dir.string(), true);
}
#endif