Welcome! Log In Create A New Profile

Advanced

Building Nginx from source with LibreSSL

September 15, 2024 01:55PM
I was having some trouble yesterday building nginx from source with LibreSSL. Following the documentation https://nginx.org/en/docs/quic.html didn't seem to work with the latest nginx 1.26 and Libressl 3.9.2. The command in the docs is:
```
./configure
--with-debug
--with-http_v3_module
--with-cc-opt="-I../libressl/build/include"
--with-ld-opt="-L../libressl/build/lib"
```
But the latest libressl doesn't produce a lib/ folder when you build it as a static library. So i tried various combinations of
--with-ld-opt="-L../libressl/build/crypto -L../libressl/build/tls -L../libressl/build/ssl"

but these all lead to the same error:
```
./auto/configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.

```
So after digging I found some old examples where folks were just passing in the path to the libressl source to --with-openssl. Modifying my command to this seemed to work.
```
./auto/configure --with-openssl=external/libressl \
--with-debug \
--with-http_ssl_module \
--with-http_v3_module
```

Can anyone confirm whether this is in fact the correct way to build nginx with libressl these days?
Subject Author Posted

Building Nginx from source with LibreSSL

loganamcnichols September 15, 2024 01:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 127
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready