This is a list of steps to follow to generate an OpenResty bundle that can be compiled with wolfSSL.
- Download the appropriate release from https://openresty.org/en/download.html
- Extract (tar -xf openresty-.tar.gz)
Patch the configure script to link against wolfSSL instead of OpenSSL. In the OpenResty directory:
patch -p1 < <version>.patch
Patches for the following versions are available in this directory:
- 1.19.9.1
- 1.19.3.1
- 1.13.6.2
./configure --enable-openresty
make
make install
./configure --with-wolfssl=/usr/local
make
When porting to a new version of OpenResty, you need to copy the appropriate Nginx patch from the wolfssl-nginx repo and rename it to nginx-wolfssl.patch. The patch file should be placed in the bundle directory.
cp <path/to/wolfssl/nginx/patch> bundle/nginx-wolfssl.patch
Patches are generated with the following command:
git format-patch -1