aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index 98d4376..21cdd4b 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -209,11 +209,8 @@ init_per_group(http, Config) ->
{transport, Transport}, {client, Client}|Config1];
init_per_group(https, Config) ->
Transport = ranch_ssl,
- Opts = [
- {certfile, ?config(data_dir, Config) ++ "ssl/cert.pem"},
- {keyfile, ?config(data_dir, Config) ++ "ssl/key.pem"},
- {password, "cowboy"}
- ],
+ {_, Cert, Key} = ct_helper:make_certs(),
+ Opts = [{cert, Cert}, {key, Key}],
Config1 = init_static_dir(Config),
application:start(public_key),
application:start(ssl),
@@ -241,11 +238,8 @@ init_per_group(http_compress, Config) ->
{transport, Transport}, {client, Client}|Config1];
init_per_group(https_compress, Config) ->
Transport = ranch_ssl,
- Opts = [
- {certfile, ?config(data_dir, Config) ++ "ssl/cert.pem"},
- {keyfile, ?config(data_dir, Config) ++ "ssl/key.pem"},
- {password, "cowboy"}
- ],
+ {_, Cert, Key} = ct_helper:make_certs(),
+ Opts = [{cert, Cert}, {key, Key}],
Config1 = init_static_dir(Config),
application:start(public_key),
application:start(ssl),