aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ssl_hello_world/src/ssl_hello_world_app.erl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ssl_hello_world/src/ssl_hello_world_app.erl')
-rw-r--r--examples/ssl_hello_world/src/ssl_hello_world_app.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/ssl_hello_world/src/ssl_hello_world_app.erl b/examples/ssl_hello_world/src/ssl_hello_world_app.erl
index 959dc77..542e4d8 100644
--- a/examples/ssl_hello_world/src/ssl_hello_world_app.erl
+++ b/examples/ssl_hello_world/src/ssl_hello_world_app.erl
@@ -19,9 +19,8 @@ start(_Type, _Args) ->
PrivDir = code:priv_dir(ssl_hello_world),
{ok, _} = cowboy:start_tls(https, [
{port, 8443},
- {cacertfile, PrivDir ++ "/ssl/cowboy-ca.crt"},
- {certfile, PrivDir ++ "/ssl/server.crt"},
- {keyfile, PrivDir ++ "/ssl/server.key"}
+ {certfile, PrivDir ++ "/ssl/cert.pem"},
+ {keyfile, PrivDir ++ "/ssl/key.pem"}
], #{env => #{dispatch => Dispatch}}),
ssl_hello_world_sup:start_link().