0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Update ssl_hello_world example certificate

This commit is contained in:
Loïc Hoguin 2024-01-26 15:38:40 +01:00
parent a0314a6dff
commit 1c464083fa
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
7 changed files with 54 additions and 54 deletions

View file

@ -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().