System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found. code example

Example: System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found.

# 1. Manually install openssl1.0.2s (https://drive.google.com/file/u/5/d/1DkRYjUar6bP4Z6Nfo0bbFH0fmJxhvWqu/view?usp=sharing)
	# Copy folder 1.0.2s (after unziping it) to /usr/local/Cellar/openssl 
	sudo ln -s /usr/local/Cellar/openssl/1.0.2s/bin/openssl  /usr/local/bin/openssl
	sudo ln -s /usr/local/Cellar/openssl/1.0.2s  /usr/local/opt/openssl

# 2. You might need this if not setup already
	mkdir -p /usr/local/lib
	ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
	ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/

Tags:

Misc Example