aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_engine_SUITE.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-07-17 14:23:47 +0200
committerIngela Anderton Andin <[email protected]>2018-07-17 14:41:20 +0200
commitdcd0547dd2e1a78f89dced3ca5918ae539b11de3 (patch)
tree64f276eac4c209c384f91620aa0b08a2a9a34853 /lib/ssl/test/ssl_engine_SUITE.erl
parent857156bcadae45fe112911bd7ca735ac6f3ca9d2 (diff)
downloadotp-dcd0547dd2e1a78f89dced3ca5918ae539b11de3.tar.gz
otp-dcd0547dd2e1a78f89dced3ca5918ae539b11de3.tar.bz2
otp-dcd0547dd2e1a78f89dced3ca5918ae539b11de3.zip
ssl: Engine key trumps certfile option
Diffstat (limited to 'lib/ssl/test/ssl_engine_SUITE.erl')
-rw-r--r--lib/ssl/test/ssl_engine_SUITE.erl15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_engine_SUITE.erl b/lib/ssl/test/ssl_engine_SUITE.erl
index 71891356e8..8025e4e0ed 100644
--- a/lib/ssl/test/ssl_engine_SUITE.erl
+++ b/lib/ssl/test/ssl_engine_SUITE.erl
@@ -117,8 +117,23 @@ private_key(Config) when is_list(Config) ->
EngineServerConf = [{key, #{algorithm => rsa,
engine => Engine,
key_id => ServerKey}} | proplists:delete(key, ServerConf)],
+
+ EngineFileClientConf = [{key, #{algorithm => rsa,
+ engine => Engine,
+ key_id => ClientKey}} |
+ proplists:delete(keyfile, FileClientConf)],
+
+ EngineFileServerConf = [{key, #{algorithm => rsa,
+ engine => Engine,
+ key_id => ServerKey}} |
+ proplists:delete(keyfile, FileServerConf)],
+
%% Test with engine
test_tls_connection(EngineServerConf, EngineClientConf, Config),
+
+ %% Test with engine and present file arugments
+ test_tls_connection(EngineFileServerConf, EngineFileClientConf, Config),
+
%% Test that sofware fallback is available
test_tls_connection(ServerConf, [{reuse_sessions, false} |ClientConf], Config).