2 # Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the Apache License 2.0 (the "License"). You may not use
5 # this file except in compliance with the License. You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
10 ## SSL test configurations
13 use OpenSSL::Test::Utils;
17 name => "SECLEVEL 3 with default key",
18 server => { "CipherString" => "DEFAULT:\@SECLEVEL=3" },
20 test => { "ExpectedResult" => "ServerFail" },
26 name => "SECLEVEL 3 with ED448 key",
27 server => { "CipherString" => "DEFAULT:\@SECLEVEL=3",
28 "Certificate" => test_pem("server-ed448-cert.pem"),
29 "PrivateKey" => test_pem("server-ed448-key.pem") },
31 test => { "ExpectedResult" => "Success" },
34 name => "SECLEVEL 3 with P-384 key, X25519 ECDHE",
35 server => { "CipherString" => "DEFAULT:\@SECLEVEL=3",
36 "Certificate" => test_pem("p384-server-cert.pem"),
37 "PrivateKey" => test_pem("p384-server-key.pem"),
38 "Groups" => "X25519" },
39 client => { "CipherString" => "ECDHE:\@SECLEVEL=3",
40 "VerifyCAFile" => test_pem("p384-root.pem") },
41 test => { "ExpectedResult" => "Success" },
47 name => "SECLEVEL 3 with ED448 key, TLSv1.2",
48 server => { "CipherString" => "DEFAULT:\@SECLEVEL=3",
49 "Certificate" => test_pem("server-ed448-cert.pem"),
50 "PrivateKey" => test_pem("server-ed448-key.pem"),
51 "MaxProtocol" => "TLSv1.2" },
53 test => { "ExpectedResult" => "Success" },
57 push @tests, @tests_ec unless disabled("ec");
58 push @tests, @tests_tls1_2 unless disabled("tls1_2") || disabled("ec");