You must specify where the file is located in order to map the path
sudo install_name_tool -add_rpath / usr / local / opt / openssl / lib /usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Security.Cryptography.Native.dylib
The above solution will work if you have the same folder structure for the installed dotnet kernel.
/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Security.Cryptography.Native.dylib
kindly check the location of the System.Security.Cryptography.Native.dylib file on your system, however, the folder structure or packages may receive changes in accordance with the updates. In my case, the path was
/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.2/System.Security.Cryptography.Native.dylib
source share