-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
I'm trying to debug the "System.Net.Security" library in .NET 6 from MacOS but it throws error "No usable version of libssl was found" when the Iterop class tries to load the dylib lib.
It's NOT a BUG because if I compile the System.Net.Security lib in release and I reference it in my project it works fine.
I'm probably missing some configuration.
I have currently tried the following in .bash_profile (one at time and all together):
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export DYLD_FALLBACK_LIBRARY_PATH="/usr/local/opt/openssl@1.1/lib"
export DYLD_LIBRARY_PATH="/usr/local/opt/openssl@1.1/lib"
export CLR_OPENSSL_VERSION_OVERRIDE="1.1" (tryed because I don't know the version of lib used by .NET6)
Lib filename:
/usr/local/opt/openssl@1.1/lib
-r--r--r-- 19 Mar 18:00 libssl.1.1.dylib
Openssl version:
$ openssl version
OpenSSL 1.1.1t 7 Feb 2023
Otool:
otool -L /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
/usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib:
/usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
/usr/local/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.100.3)
Configuration:
NET6 - runtime 6.0.14
OS Version: Mac OS X Monterey 12.6.3 (21G419)
Architecture: X86_64
