{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/3964","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/3964/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/3964/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/3964/events","html_url":"https://github.com/dotnet/cli/issues/3964","id":168446919,"number":3964,"title":"Installing and Running on OS X 10.11 SSL Fails to Link Using Brew","user":{"login":"idavis","id":63540,"avatar_url":"https://avatars.githubusercontent.com/u/63540?v=3","gravatar_id":"","url":"https://api.github.com/users/idavis","html_url":"https://github.com/idavis","followers_url":"https://api.github.com/users/idavis/followers","following_url":"https://api.github.com/users/idavis/following{/other_user}","gists_url":"https://api.github.com/users/idavis/gists{/gist_id}","starred_url":"https://api.github.com/users/idavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idavis/subscriptions","organizations_url":"https://api.github.com/users/idavis/orgs","repos_url":"https://api.github.com/users/idavis/repos","events_url":"https://api.github.com/users/idavis/events{/privacy}","received_events_url":"https://api.github.com/users/idavis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2016-07-30T03:39:57Z","updated_at":"2016-08-02T08:13:00Z","closed_at":null,"body":"## Steps to reproduce\r\nFollowing steps here: https://www.microsoft.com/net/core#macos\r\n\r\n```\r\nbrew update\r\nbrew install openssl\r\nbrew link --force openssl\r\n```\r\n\r\n## Expected  behavior\r\nSystem is configured\r\n\r\n## Actual behavior\r\n`$ brew link --force openssl` output:\r\n```\r\nWarning: Refusing to link: openssl\r\nLinking keg-only OpenSSL means you may end up linking against the insecure,\r\ndeprecated system version while using the headers from the Homebrew version.\r\nInstead, pass the full include/library paths to your compiler e.g.:\r\n  -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\r\n```\r\n\r\nIf I try to use the CLI, I get crypto errors:\r\n`$ dotnet restore`  output:\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 (Exception from HRESULT: 0x8007007E)\r\n   at Interop.CryptoInitializer.EnsureOpenSslInitialized()\r\n   at Interop.CryptoInitializer..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Interop.Crypto..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Interop.Crypto.GetRandomBytes(Byte* buf, Int32 num)\r\n   at System.IO.Path.GetCryptoRandomBytes(Byte* bytes, Int32 byteCount)\r\n   at System.IO.Path.GetRandomFileName()\r\n   at Microsoft.DotNet.InternalAbstractions.TemporaryDirectory..ctor()\r\n   at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory()\r\n   at Microsoft.DotNet.Configurer.NuGetPackagesArchiver..ctor()\r\n   at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel)\r\n   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)\r\n   at Microsoft.DotNet.Cli.Program.Main(String[] args)\r\nAbort trap: 6\r\n```\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n```\r\n.NET Command Line Tools (1.0.0-preview2-003121)\r\n\r\nProduct Information:\r\n Version:            1.0.0-preview2-003121\r\n Commit SHA-1 hash:  1e9d529bc5\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`$ brew -v` output:\r\n```\r\nHomebrew 0.9.9 (git revision b999e; last commit 2016-07-29)\r\nHomebrew/homebrew-core (git revision a69e; last commit 2016-07-29)\r\n```\r\n\r\n`$ brew info openssl`  output:\r\n```\r\nopenssl: stable 1.0.2h (bottled) [keg-only]\r\nSSL/TLS cryptography library\r\nhttps://openssl.org/\r\n/usr/local/Cellar/openssl/1.0.2h_1 (1,691 files, 12M)\r\n  Poured from bottle on 2016-07-29 at 18:47:22\r\nFrom: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl.rb\r\n==> Dependencies\r\nBuild: makedepend ✘\r\n==> Options\r\n--universal\r\n\tBuild a universal binary\r\n--without-test\r\n\tSkip build-time tests (not recommended)\r\n==> Caveats\r\nA CA file has been bootstrapped using certificates from the system\r\nkeychain. To add additional certificates, place .pem files in\r\n  /usr/local/etc/openssl/certs\r\n\r\nand run\r\n  /usr/local/opt/openssl/bin/c_rehash\r\n\r\nThis formula is keg-only, which means it was not symlinked into /usr/local.\r\n\r\nApple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries\r\n\r\nGenerally there are no consequences of this for you. If you build your\r\nown software and it requires this formula, you'll need to add to your\r\nbuild variables:\r\n\r\n    LDFLAGS:  -L/usr/local/opt/openssl/lib\r\n    CPPFLAGS: -I/usr/local/opt/openssl/include\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/236834625","html_url":"https://github.com/dotnet/cli/issues/3964#issuecomment-236834625","issue_url":"https://api.github.com/repos/dotnet/cli/issues/3964","id":236834625,"user":{"login":"zh-wowtv","id":18462946,"avatar_url":"https://avatars.githubusercontent.com/u/18462946?v=3","gravatar_id":"","url":"https://api.github.com/users/zh-wowtv","html_url":"https://github.com/zh-wowtv","followers_url":"https://api.github.com/users/zh-wowtv/followers","following_url":"https://api.github.com/users/zh-wowtv/following{/other_user}","gists_url":"https://api.github.com/users/zh-wowtv/gists{/gist_id}","starred_url":"https://api.github.com/users/zh-wowtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zh-wowtv/subscriptions","organizations_url":"https://api.github.com/users/zh-wowtv/orgs","repos_url":"https://api.github.com/users/zh-wowtv/repos","events_url":"https://api.github.com/users/zh-wowtv/events{/privacy}","received_events_url":"https://api.github.com/users/zh-wowtv/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T08:13:00Z","updated_at":"2016-08-02T08:13:00Z","body":"@joshka Installing from the source code is working for me. But the other way they mentioned not working."}}
{"actor":{"display_login":"zh-wowtv"}}