Skip to content

Commit

Permalink
update README: build openssl env var
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed Jan 5, 2024
1 parent 6e5d028 commit 5a56069
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Exactly the goals I set out to achieve!
- Q: **Does ZAP support TLS / HTTPS?**
- A: Yes, ZAP supports using the system's openssl. See the
[https](./examples/https/https.zig) example and make sure to build with
`-Dopenssl=true`.
the environment variable `ZAP_USE_OPENSSL=true`:
- `ZAP_USE_OPENSSL=true zig build https`

## Here's what works

Expand Down Expand Up @@ -116,8 +117,11 @@ necessary to show a feature.
call `r.sendError(err, status_code)` when you catch an error and a stack trace
will be returned to the client / browser.
- [**HTTPS**](examples/https/https.zig): Shows how easy it is to use facil.io's
openssl support. Must be compiled with the `-Dopenssl=true` and requires
openssl dev dependencies (headers, lib) to be installed on the system.
openssl support. Must be compiled with the environment variable
`ZAP_USE_OPENSSL` set to `true` and requires openssl dev dependencies
(headers, lib) to be installed on the system.
- run it like this: `ZAP_USE_OPENSSL=true zig build run-https`
- it will tell you how to generate certificates

I'll continue wrapping more of facil.io's functionality and adding stuff to zap
to a point where I can use it as the JSON REST API backend for real research
Expand Down

0 comments on commit 5a56069

Please sign in to comment.