{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/4245","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/4245/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/4245/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/4245/events","html_url":"https://github.com/dotnet/cli/issues/4245","id":179009672,"number":4245,"title":"OS-X 10.11.12 : 'System.Security.Cryptography.Native': The specified module could not be found.","user":{"login":"sushihangover","id":1294194,"avatar_url":"https://avatars.githubusercontent.com/u/1294194?v=3","gravatar_id":"","url":"https://api.github.com/users/sushihangover","html_url":"https://github.com/sushihangover","followers_url":"https://api.github.com/users/sushihangover/followers","following_url":"https://api.github.com/users/sushihangover/following{/other_user}","gists_url":"https://api.github.com/users/sushihangover/gists{/gist_id}","starred_url":"https://api.github.com/users/sushihangover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushihangover/subscriptions","organizations_url":"https://api.github.com/users/sushihangover/orgs","repos_url":"https://api.github.com/users/sushihangover/repos","events_url":"https://api.github.com/users/sushihangover/events{/privacy}","received_events_url":"https://api.github.com/users/sushihangover/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-24T04:16:45Z","updated_at":"2016-09-24T04:16:45Z","closed_at":null,"body":"## Steps to reproduce\r\n\r\n### Verify openssl symlinks based upon documentation and other closed issues:\r\n\r\n```\r\n$> ls -l /usr/local/lib/libssl*\r\nlrwxr-xr-x  1 sushi  admin  45 Sep 23 20:13 /usr/local/lib/libssl.1.0.2.dylib -> /usr/local/opt/openssl/lib/libssl.1.0.2.dylib\r\n\r\n$> ls -l /usr/local/lib/libcrypto*\r\nlrwxr-xr-x  1 sushi  admin  48 Sep 23 20:12 /usr/local/lib/libcrypto.1.0.2.dylib -> /usr/local/opt/openssl/lib/libcrypto.1.0.2.dylib\r\n```\r\nNote: These `.dylib`s were installed via `home-brew`\r\n\r\n\r\n### Use `dotnet`:\r\n```\r\n$> dotnet restore\r\n\r\nUnhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found.\r\n```\r\n\r\n### Check which version and location are being used by `dotnet`:\r\n\r\n```\r\ncd $(dirname `which dotnet`)\r\nfind . -name \"*.dylib\" -print0 | xargs -n 1 -0 -J % otool -L % | grep libcrypto\r\n\t@rpath/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\nfoobar:dotnet sushi$ find . -name \"*.dylib\" -print0 | xargs -n 1 -0 -J % otool -L % | grep -e libcrypto -e libssl\r\n\t@rpath/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t@rpath/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n```\r\n\r\n## Which version of OpenSSL should be used and sym-linked?\r\n\r\nSince there is no true \"RPATH\" on OS-X, are you running `install_name_tool` during the installer, but it is failing? Is `install_name_tool` supposed to be run as a post-build step, before the official installer binaries are pkg'd?\r\n\r\nUgly Workaround: \r\n\r\n* Copy the libssl/libcrypt dylibs to the `/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.1`\r\n\r\nBetter Workaround:\r\n\r\n* Use `install_name_tool` to correct the dotnet dylibs to look in the proper directory, but how many users know how to do this... \r\n\r\n## Environment data\r\n```\r\n$> dotnet --info\r\n.NET Command Line Tools (1.0.0-preview2-003131)\r\n\r\nProduct Information:\r\n Version:            1.0.0-preview2-003131\r\n Commit SHA-1 hash:  635cf40e58\r\n\r\nRuntime Environment:\r\n OS Name:     Mac OS X\r\n OS Version:  10.11\r\n OS Platform: Darwin\r\n RID:         osx.10.11-x64\r\n```\r\n\r\n"}}
{"actor":{"display_login":"sushihangover"}}