From 0158bad7ad35279d64096ee86defdf4c04532ece Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 20 Nov 2017 00:27:26 +0100 Subject: certmanager: Set single curve conditioned on LuaSec advertising EC crypto support --- core/certmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/certmanager.lua b/core/certmanager.lua index e13a5d8e..f343b6d7 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -114,7 +114,7 @@ local core_defaults = { single_ecdh_use = luasec_has.options.single_ecdh_use; }; verifyext = { "lsec_continue", "lsec_ignore_purpose" }; - curve = "secp384r1"; + curve = luasec_has.algorithms.ec and not luasec_has.capabilities.curves_list and "secp384r1"; curveslist = { "X25519", "P-384", -- cgit v1.2.3