Homebrew refusing to link OpenSSL
<p>I'm on: OSX 10.11.6, Homebrew version 0.9.9m OpenSSL 0.9.8zg 14 July 2015</p>

<p>I'm trying to play with with dotnetcore and by following their <a href="https://www.microsoft.com/net/core#macos">instructions</a>, </p>

<p>I've upgraded/installed the latest version of openssl:</p>

<pre><code>&gt; brew install openssl
==&gt; Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2h_1.el_capitan.bottle.tar.gz
Already downloaded: /Users/administrator/Library/Caches/Homebrew/openssl-1.0.2h_1.el_capitan.bottle.tar.gz
==&gt; Pouring openssl-1.0.2h_1.el_capitan.bottle.tar.gz
==&gt; Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include
</code></pre>

<p>But when I try to link openssl I continue to run into this linking error:</p>

<pre><code>&gt; brew link --force openssl
Warning: Refusing to link: openssl
Linking keg-only OpenSSL means you may end up linking against the insecure,
deprecated system version while using the headers from the Homebrew version.
Instead, pass the full include/library paths to your compiler e.g.:
  -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
</code></pre>

<p>The option to include compiler flags doesn't make sense to me, since I'm not compiling these libraries that I'm dependent on. </p>

<p><strong>EDIT</strong> dotnetcore has updated their instructions:</p>

<pre><code>brew update    
brew install openssl    
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/
</code></pre>