title: Updating openssl in python 2.7
body: <p>wondering if someone may please explain how openssl works in python2.7.
  I'm not sure if python got its own openssl or picks it up from local machine/env?</p>
  
  <p>let me explain: 
  (if I do this in Python)</p>
  
  <pre><code>&gt;&gt;&gt; import ssl
  &gt;&gt;&gt; ssl.OPENSSL_VERSION
  'OpenSSL 0.9.8x 10 May 2012'
  </code></pre>
  
  <p>(In terminal)</p>
  
  <pre><code>$ openssl version
  OpenSSL 0.9.8x 10 May 2012
  $ which openssl 
  /usr/bin/openssl
  </code></pre>
  
  <p>now I updated openssl (downloaded .)</p>
  
  <pre><code>$ cd openssl-1.0.1c
  $ ./Configure darwin64-x86_64-cc --prefix=/usr --openssldir=/opt/local/etc/openssl shared
  $ make
  $ sudo make install
  </code></pre>
  
  <p>this created separate director(as specified), so I copied it to the old path </p>
  
  <pre><code>cp -f /usr/local/ssl/bin/openssl /usr/bin/openssl
  </code></pre>
  
  <p>now in terminal openssl version has been updated but not from python!</p>
  
  <pre><code>$ openssl version
  OpenSSL 1.0.1c 10 May 2012
  </code></pre>
  
  <p>I did noticed that .dylib is still pointing to old version, how can I change this?</p>
  
  <pre><code>$ ls -l /usr/lib/*ssl*
  -rwxr-xr-x  1 root  wheel  411680 Jul 17  2012 /usr/lib/libssl.0.9.7.dylib
  -rwxr-xr-x  1 root  wheel  602800 May 24 03:43 /usr/lib/libssl.0.9.8.dylib
  -rwxr-xr-x  1 root  wheel  390908 Sep  9 17:37 /usr/lib/libssl.1.0.0.dylib
  lrwxr-xr-x  1 root  wheel      18 Jul 17  2012 /usr/lib/libssl.dylib -&gt; libssl.0.9.8.dylib
  </code></pre>
  
  <p><em><strong>Update</em></strong>: I changed the link still got old version at python.</p>
  
  <pre><code>$ ls -l /usr/lib/*ssl*
  -rwxr-xr-x  1 root  wheel  411680 Jul 17  2012 /usr/lib/libssl.0.9.7.dylib
  -rwxr-xr-x  1 root  wheel  602800 May 24 03:43 /usr/lib/libssl.0.9.8.dylib
  -rwxr-xr-x  1 root  wheel  390908 Sep  9 17:37 /usr/lib/libssl.1.0.0.dylib
  lrwxr-xr-x  1 root  wheel      18 Sep 11 15:47 /usr/lib/libssl.dylib -&gt; libssl.1.0.0.dylib
  </code></pre>