Software /
code /
prosody
Comparison
core/certmanager.lua @ 12099:b344edad61d3
core.certmanager: Rename preset option to 'tls_preset'
TLS good, SSL bad.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 22 Dec 2021 14:24:26 +0100 |
parent | 12098:9591b838e3b0 |
child | 12104:29765ac7f72f |
comparison
equal
deleted
inserted
replaced
12098:9591b838e3b0 | 12099:b344edad61d3 |
---|---|
341 mode = mode, | 341 mode = mode, |
342 -- We can't read the password interactively when daemonized | 342 -- We can't read the password interactively when daemonized |
343 password = function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end; | 343 password = function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end; |
344 }); | 344 }); |
345 cfg:apply(global_ssl_config); | 345 cfg:apply(global_ssl_config); |
346 local preset = configmanager.get("*", "ssl_preset") or "intermediate"; | 346 local preset = configmanager.get("*", "tls_preset") or "intermediate"; |
347 if preset ~= "legacy" then | 347 if preset ~= "legacy" then |
348 cfg:apply(mozilla_ssl_configs[preset]); | 348 cfg:apply(mozilla_ssl_configs[preset]); |
349 end | 349 end |
350 | 350 |
351 for i = select('#', ...), 1, -1 do | 351 for i = select('#', ...), 1, -1 do |