title: Warning: openssl-1.0.2g already installed when using HomeBrew
body: <p>I'm working on OS X 10.11.4. I'm trying to get started with <a href="http://framework.zend.com/" rel="nofollow noreferrer">Zend Framework2</a> and am using the official manual so have installed composer. When installing composer I got this warning:</p>
  
  <blockquote>
    <p>The OpenSSL library (0.9.8zc) used by PHP does not support TLSv1.2 or
    TLSv1.1. If possible you should upgrade OpenSSL to version 1.0.1 or
    above.</p>
  </blockquote>
  
  <p>So I opened Terminal and used the following to check my openssl version:</p>
  
  <pre><code>$ openssl version
  OpenSSL 0.9.8zh 14 Jan 2016
  </code></pre>
  
  <p>So I looked into updating and came across <a href="https://apple.stackexchange.com/questions/126830/how-to-upgrade-openssl-in-os-x">How to upgrade OpenSSL in OS X</a> on the Apple Stack Exchange. I then used the following to update HomeBrew and install the latest version of OpenSSL</p>
  
  <pre><code>$ brew update
  $ brew install openssl
  </code></pre>
  
  <p>But got this warning:</p>
  
  <pre><code>Warning: openssl-1.0.2g already installed
  </code></pre>
  
  <p>So then I followed this advice (<a href="https://stackoverflow.com/questions/15185661/update-openssl-on-os-x-with-homebrew">Update OpenSSL on OS X with Homebrew</a> - top answer)</p>
  
  <pre><code>$ brew unlink openssl &amp;&amp; brew link openssl --force
  Unlinking /usr/local/Cellar/openssl/1.0.2g... 1591 symlinks removed
  Linking /usr/local/Cellar/openssl/1.0.2g... 1588 symlinks created
  $ which openssl
  /usr/local/bin/openssl
  $ openssl version
  OpenSSL 0.9.8zh 14 Jan 2016
  </code></pre>
  
  <p>So it seems I have the updated version on my machine but it isn't being used by default?</p>
  
  <p>Sorry for my naivety but I'm a complete beginner.</p>
  
  <p>Can any one tell me what I'm doing wrong?</p>
  
  <p>Thanks in advance</p>