diff options
author | Loïc Hoguin <[email protected]> | 2013-09-08 20:17:25 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-09-08 20:17:25 +0200 |
commit | 24a22fa657af8398c963889d0bf08a904c96ec8c (patch) | |
tree | 0f3e2b39c1e700dadbc7afde176fb1f6600e30e0 /examples/ssl_hello_world/README.md | |
parent | 1f8119ef311911c3bc4567a198abd0237db6710d (diff) | |
download | cowboy-24a22fa657af8398c963889d0bf08a904c96ec8c.tar.gz cowboy-24a22fa657af8398c963889d0bf08a904c96ec8c.tar.bz2 cowboy-24a22fa657af8398c963889d0bf08a904c96ec8c.zip |
Convert the SSL hello world example to a release
Diffstat (limited to 'examples/ssl_hello_world/README.md')
-rw-r--r-- | examples/ssl_hello_world/README.md | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/examples/ssl_hello_world/README.md b/examples/ssl_hello_world/README.md index 766ff59..02bf13a 100644 --- a/examples/ssl_hello_world/README.md +++ b/examples/ssl_hello_world/README.md @@ -1,23 +1,27 @@ -Cowboy Hello World -================== +Hello world example +=================== -To compile this example you need rebar in your PATH. +To try this example, you need GNU `make`, `git` and +[relx](https://github.com/erlware/relx) in your PATH. -Type the following command: -``` -$ rebar get-deps compile -``` +To build the example, run the following command: -You can then start the Erlang node with the following command: +``` bash +$ make ``` -./start.sh + +To start the release in the foreground: + +``` bash +$ ./_rel/bin/ssl_hello_world_example console ``` -Then point your browser to the indicated URL. You will need to temporarily -trust the root certificate authority in `priv/ssl/cowboy-ca.crt`. +Then point your browser at [http://localhost:8443](http://localhost:8443). +You will need to temporarily trust the root certificate authority, +which can also be found in `priv/ssl/cowboy-ca.crt`. -Example -------- +Example output +-------------- ``` bash $ curl --cacert priv/ssl/cowboy-ca.crt -i https://localhost:8443 |