Python and OpenSSL version reference issue on OS X
<p>Trying to resolve an OpenSSL version issue I'm having. </p>

<p>It seems that I have three different versions of OpenSSL on my Mac. </p>

<ol>
<li><p>Python 2.7.11 has version 0.9.7m:</p>

<pre><code>python -c "import ssl; print ssl.OPENSSL_VERSION"
OpenSSL 0.9.7m 23 Feb 2007
</code></pre></li>
<li><p>At the Terminal:</p>

<pre><code>openssl version
OpenSSL 1.0.1h 5 Jun 2014
</code></pre></li>
<li><p>Recently Compiled / Installed: </p>

<pre><code>/usr/local/ssl/bin/openssl
OpenSSL&gt; version
OpenSSL 1.0.2h  3 May 2016
OpenSSL&gt;
</code></pre></li>
</ol>

<p>I recently upgraded my OS X to 10.11.5. In the process, caused an issue for previously working python scripts. Below is the error message snippet: </p>

<p>Python Error Message: </p>

<pre><code> You are linking against OpenSSL 0.9.8, which is no longer *
 RuntimeError: You are linking against OpenSSL 0.9.8, which is no longer support by the OpenSSL project. You need to upgrade to a newer version of OpenSSL.
</code></pre>

<p>(* - yes, this is how the error message looks like. It's trimmed in the middle of the sentence.)</p>

<p>Any recommendations on resolving this issue would be greatly appreciated. What I'd like is to have Python reference the OpenSSL version 1.0.2h vs the outdated version 0.9.7m.</p>

<p>I've tried installing Python and OpenSSL many times using various post / blogs for guidance without any luck.</p>