I am trying to launch an Apache server on Ubuntu 20.04 running a custom built OpenSSL, but I don't want to install it on my machine, instead, I want to show the server where it can find all libraries and configuration files relevant to OpenSSL. As you guess, this is an experimental study, so I don't want to mess with my default OpenSSL.
I used the following command to configure my server:
./configure --prefix=/home/samettonyali/Desktop/Workspace/httpd-2.4.53 --enable-ssl --with-ssl=/home/samettonyali/Desktop/Workspace/openssl --enable-ssl-staticlib-deps --enable-mods-static=ssl --with-expat=/home/samettonyali/Desktop/Workspace/expat-2.4.8 --with-included-apr --with-included-apr-util --with-crypto
make install (without sudo)
When I check it using the following command
curl --head http://localhost:4433/
It yields the following output:
HTTP/1.1 400 Bad Request
Date: Thu, 02 Jun 2022 18:49:26 GMT
Server: Apache/2.4.53 (Unix) OpenSSL/1.1.1f
Content-Type: text/html; charset=iso-8859-1
As you can see in the output the server uses OpenSSL 1.1.1f whereas my custom OpenSSL is built on top of OpenSSL 1.1.1o. Hence, I am unable to use key exchange mechanisms and digital signatures that come with the custom OpenSSL.
Basically I am trying to do the same explained in this link, but I don't want to install the OpenSSL machine-wide, instead, I would like to use it locally.
I'd appreciate if anyone explain how I am supposed to configure the server, so it uses my OpenSSL instead of the one installed on the machine.