Need to specify where the required file is located 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
**
Above solution will work if you having the same folder structure for installed dotnet core.
/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Security.Cryptography.Native.dylib
kindly check the location of the file System.Security.Cryptography.Native.dylib in your system, however folder structure or packages may get change as per the updates. In my case the path was
/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.2/System.Security.Cryptography.Native.dylib