Hello David,

Can you present your launcher script here?

LD_LIBRARY_PATH is the correct way to use an ABI compatible(same SONAME)
alternative to a system library.

The boilerplate looks like this:

#!/bin/bash
# IMPORTANT: intended replacements must have the same SONAME as what
# tls.so was built with, i.e., libssl.so.3, libcrypto.so.3
# Your local artifacts libssl.so.3 libcrypto.so.3 installed to /opt/openssl3/lib64
# EITHER
export LD_LIBRARY_PATH=/opt/openssl3/lib64  #export is required
/usr/sbin/kamailio  <args .....>

# OR - same line -
LD_LIBRARY_PATH=/opt/openssl3/lib64 /usr/sbin/kamailio <args .....>

Cheers
Richard