Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OSX: An error occurred: The type initializer for 'Crypto' threw an exception. #470
Current proposed solution.
brew update brew install openssl
From the root of the agent after download and extract (I will likely bake into cfg later).
install_name_tool -add_rpath /usr/local/opt/openssl/lib ./bin/System.Security.Cryptography.Native.dylib
If it already exists for some reason -delete_repath with same args can be used. This tells the net core crypt dylib we distribute to use the openssl brew just installed.
referenced this issue
Nov 5, 2016
In order to avoid linking openssl to system paths (which could cause problems) this is what we ended up doing
This also means you could embed the correct openssl version in the package and adjust DYLD_LIBRARY_PATH in the