diff options
author | Loïc Hoguin <[email protected]> | 2024-01-26 15:38:40 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2024-01-26 15:38:40 +0100 |
commit | 1c464083fa7232ac61984d0ce109ed50c85c4ecf (patch) | |
tree | 6fda1c841002d2f1d52b51d7a68c37d70566c5ad /examples/ssl_hello_world/src | |
parent | a0314a6dff2f50f8cf21cd5ff0ca33b27355baf4 (diff) | |
download | cowboy-1c464083fa7232ac61984d0ce109ed50c85c4ecf.tar.gz cowboy-1c464083fa7232ac61984d0ce109ed50c85c4ecf.tar.bz2 cowboy-1c464083fa7232ac61984d0ce109ed50c85c4ecf.zip |
Update ssl_hello_world example certificate
Diffstat (limited to 'examples/ssl_hello_world/src')
-rw-r--r-- | examples/ssl_hello_world/src/ssl_hello_world_app.erl | 5 |
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(). |