2017-07-23 19:17:02 +00:00
|
|
|
# SSL Example
|
|
|
|
|
|
|
|
This is a basic 'hello world' example, that runs over HTTPS. It simply returns
|
|
|
|
'hello world!' when making any request.
|
|
|
|
|
|
|
|
Note that it uses self-signed certificates, so you will need to ignore
|
|
|
|
certificate errors when testing.
|
|
|
|
|
|
|
|
To run the example server, run:
|
|
|
|
|
|
|
|
```bash
|
2021-11-17 05:50:23 +00:00
|
|
|
nix-shell --run 'example SSL'
|
|
|
|
```
|
|
|
|
|
|
|
|
Or, without nix:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
spago -x test.dhall run --main Examples.SSL.Main
|
2017-07-23 19:17:02 +00:00
|
|
|
```
|