aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-09-12 15:49:24 +0200
committerKim Alvefur <zash@zash.se>2016-09-12 15:49:24 +0200
commitd854c36fc54f53edc662aae84a329a715561bf93 (patch)
tree592d1fe08474bd5f2182c42b373ee71d16dd8ef3
parentab34bf8a9361c4b6da4fa20b092c6a8028c34f9c (diff)
downloadprosody-d854c36fc54f53edc662aae84a329a715561bf93.tar.gz
prosody-d854c36fc54f53edc662aae84a329a715561bf93.zip
core.certmanager: Split cipher list into array with comments explaining each part
-rw-r--r--core/certmanager.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index c286a901..3872bd9a 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -103,7 +103,16 @@ local core_defaults = {
};
verifyext = { "lsec_continue", "lsec_ignore_purpose" };
curve = "secp384r1";
- ciphers = "HIGH+kEDH:HIGH+kEECDH:HIGH:!PSK:!SRP:!3DES:!aNULL";
+ ciphers = { -- Enabled ciphers in order of preference:
+ "HIGH+kEDH", -- Ephemeral Diffie-Hellman key exchange, if a 'dhparam' file is set
+ "HIGH+kEECDH", -- Ephemeral Elliptic curve Diffie-Hellman key exchange
+ "HIGH", -- Other "High strength" ciphers
+ -- Disabled cipher suites:
+ "!PSK", -- Pre-Shared Key - not used for XMPP
+ "!SRP", -- Secure Remote Password - not used for XMPP
+ "!3DES", -- 3DES - slow and of questionable security
+ "!aNULL", -- Ciphers that does not authenticate the connection
+ };
}
local path_options = { -- These we pass through resolve_path()
key = true, certificate = true, cafile = true, capath = true, dhparam = true