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:
parent
a0314a6dff
commit
1c464083fa
7 changed files with 54 additions and 54 deletions
|
@ -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().
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue