Software /
code /
prosody
Comparison
core/certmanager.lua @ 12098:9591b838e3b0
core.certmanager: Add "legacy" preset for keeping previous default settings
If anyone wants that.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 22 Dec 2021 14:12:10 +0100 |
parent | 12097:9c794d5f6f8d |
child | 12099:b344edad61d3 |
comparison
equal
deleted
inserted
replaced
12097:9c794d5f6f8d | 12098:9591b838e3b0 |
---|---|
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("*", "ssl_preset") or "intermediate"; |
347 cfg:apply(mozilla_ssl_configs[preset]); | 347 if preset ~= "legacy" then |
348 cfg:apply(mozilla_ssl_configs[preset]); | |
349 end | |
348 | 350 |
349 for i = select('#', ...), 1, -1 do | 351 for i = select('#', ...), 1, -1 do |
350 cfg:apply(select(i, ...)); | 352 cfg:apply(select(i, ...)); |
351 end | 353 end |
352 local user_ssl_config = cfg:final(); | 354 local user_ssl_config = cfg:final(); |