core.certmanager: Use 'tls_profile' instead of 'tls_preset' to match documentation
authorKim Alvefur <zash@zash.se>
Tue, 18 Jan 2022 11:52:35 +0100
changeset 12201 95d25e620dc2
parent 12200 b05e0b422ff7
child 12202 341bc2081bb7
core.certmanager: Use 'tls_profile' instead of 'tls_preset' to match documentation Confusion! Thanks Martin
core/certmanager.lua
--- a/core/certmanager.lua	Tue Jan 18 08:04:16 2022 +0100
+++ b/core/certmanager.lua	Tue Jan 18 11:52:35 2022 +0100
@@ -350,9 +350,9 @@
 		-- We can't read the password interactively when daemonized
 		password = function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end;
 	});
-	local preset = configmanager.get("*", "tls_preset") or "intermediate";
-	if preset ~= "legacy" then
-		cfg:apply(mozilla_ssl_configs[preset]);
+	local profile = configmanager.get("*", "tls_profile") or "intermediate";
+	if profile ~= "legacy" then
+		cfg:apply(mozilla_ssl_configs[profile]);
 	end
 	cfg:apply(global_ssl_config);