aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-01-18 11:52:35 +0100
committerKim Alvefur <zash@zash.se>2022-01-18 11:52:35 +0100
commit73c3ab7888ab6438b82ea2f7716e2102db626ca5 (patch)
treeb1c26cc2e50f429e506d0c36cdea18c31e2474e0
parent8edd063114c2f0c5931643d6b75cea13a93da636 (diff)
downloadprosody-73c3ab7888ab6438b82ea2f7716e2102db626ca5.tar.gz
prosody-73c3ab7888ab6438b82ea2f7716e2102db626ca5.zip
core.certmanager: Use 'tls_profile' instead of 'tls_preset' to match documentation
Confusion! Thanks Martin
-rw-r--r--core/certmanager.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index a7a44a4c..a3b37bb4 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -350,9 +350,9 @@ local function create_context(host, mode, ...)
-- 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);