I am installed naviserver on a Centos install that has an older openssl.
It has openssl compiled locally at /usr/local/ssl as well.
I modified the makefile to compile nsssl with the /usr/local/ssl version but its still linked to the /lib64/libssl.so so it doesn't actually work.
Here is my modified Makefile.
ifndef NAVISERVER
NAVISERVER = /usr/local/ns
endif
#
# Module name
#
MOD = nsssl.so
MODLIBS = -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/ssl/lib
#
# Objects to build.
#
OBJS = nsssl.o
CFLAGS = -I/usr/local/ssl/include
MODLIBS += -lssl -lcrypto
include $(NAVISERVER)/include/Makefile.module
dhparams.h:
openssl dhparam -C -2 -noout 512 >> dhparams.h
openssl dhparam -C -2 -noout 1024 >> dhparams.h
nsssl.o: dhparams.h