Hi Chris,

Am 05.11.2018 um 18:44 schrieb Christopher Schultz:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

I'm trying to run tests locally (macos mojave) with a custom openssl
version. I have OpenSSL (installed via brew) in
/usr/local/Cellar/openssl@1.1/1.1.1, and I've copied all these files
into my Tomcat's bin/ directory, so this is what I have in
$CATALINA_HOME/bin:

drwxr-xr-x  4       128 Sep 11 08:48 engines-1.1 -rwxr-xr-x  1
166112 Oct  9 16:17 libapr-1.0.dylib -rw-r--r--  1    288560 Oct  9
16:17 libapr-1.a lrwxr-xr-x  1        16 Oct  9 16:17
libapr-1.dylib -> libapr-1.0.dylib -rw-r--r--  1   2432132 Sep 27
17:49 libcrypto.1.1.dylib -r--r--r--  1   4093208 Sep 11 08:48
libcrypto.a lrwxr-xr-x  1        19 Sep 11 08:48 libcrypto.dylib ->
libcrypto.1.1.dylib -rw-r--r--  1    489672 Sep 27 17:49
libssl.1.1.dylib -r--r--r--  1    720096 Sep 11 08:48 libssl.a
lrwxr-xr-x  1        16 Sep 11 08:48 libssl.dylib ->
libssl.1.1.dylib -rwxr-xr-x  1    213716 Nov  5 10:50
libtcnative-1.0.dylib -rw-r--r--  1   1097240 Nov  5 10:50
libtcnative-1.a lrwxr-xr-x  1        21 Nov  5 10:50
libtcnative-1.dylib -> libtcnative-1.0.dylib lrwxr-xr-x  1
19 Nov  5 10:50 libtcnative-1.la -> ../libtcnative-1.la -rw-r--r--
1      1091 Nov  5 10:50 libtcnative-1.lai

and also in engines-1.1:

- -r--r--r--  1    4240 Sep 27 17:49 capi.dylib
- -r--r--r--  1   13400 Sep 27 17:49 padlock.dylib

I have set in build.properties:

test.apr.loc=output/build/bin/

When running "ant test", the AprLifecycleListener is telling me:

OpenSSL successfully initialized [OpenSSL 1.1.1  11 Sep 2018]

... which looks like it's correct. But when e.g.
TestOpenSSLCipherConfigurationParser runs, I'm getting errors coming
from LibreSSL, which is the globally-installed crypto library
installed on macos:

4690560620:error:14FFF0B9:SSL routines:(UNKNOWN)SSL_internal:no
cipher
match:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libress
l-22.200.4/libressl-2.6/ssl/ssl_lib.c:1324:

Obviously,

OpenSSL is not being used for everything.

otool tells me that everything looks okay:

$ otool -L output/build/bin/libtcnative-1.dylib
output/build/bin/libtcnative-1.dylib:
/usr/local/apr/lib/libtcnative-1.0.dylib (compatibility version
3.0.0, current version 3.18.0)
/usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib (compatibility
version 1.1.0, current version 1.1.0)
/usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib (compatibility
version 1.1.0, current version 1.1.0)
/usr/local/opt/apr/libexec/lib/libapr-1.0.dylib (compatibility
version 7.0.0, current version 7.5.0) /usr/lib/libSystem.B.dylib
(compatibility version 1.0.0, current version 1252.200.5)

What am I missing, here?

Try setting test.openssl.path in build.properties to the full path to the openssl binary (.../bin/openssl).

See r1614560 and r1614587.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to