title: Unable to get TLS1.2 working on Mac OS
body: <p>1) I'm running Google App Engine SDK on Mac OS X El Capitan. I have Python 2.7.13</p>
  
  <p>2) While trying to test my app with Stripe, I get the following error</p>
  
  <p>Request req_ApPsfecKnLFJxb: Stripe no longer supports API requests made with TLS 1.0. Please initiate HTTPS connections with TLS 1.2 or later. You can learn more about this at <a href="https://stripe.com/blog/upgrading-tls" rel="nofollow noreferrer">https://stripe.com/blog/upgrading-tls</a>. </p>
  
  <p>3) I did some Googling and based on what I found, I did the following</p>
  
  <p>a) Used brew to upgrade my OpenSSL </p>
  
  <p>b) Confirmed that when I do 'which openssl', I get </p>
  
  <p>/usr/local/opt/openssl/bin/openssl</p>
  
  <p>and when I do 'openssl version', I get</p>
  
  <p>OpenSSL 1.0.2l</p>
  
  <p>c) If I do </p>
  
  <p>import ssl</p>
  
  <p>ssl.OPENSSL_VERSION, I get</p>
  
  <p>'OpenSSL 1.0.2l  23 May 2017'</p>
  
  <p>But I still get the error from Stripe about not using TLS 1.2.</p>
  
  <p>I found this <a href="https://stackoverflow.com/questions/42566809/enable-tls-1-2-on-mac-osx">SO question</a> but it didn't solve my problem. I also found this<a href="https://issuetracker.google.com/issues/35900856" rel="nofollow noreferrer">Google Group Discussion</a> and after running the steps in #5, it shows app engine is still pointing to the old version of OPENSSL because the output shows 'OpenSSL 0.9.8zh 14 Jan 2016'</p>
  
  <p>How do I fix this? How do I get python or app engine to use the newer version of OpenSSL that I've installed?</p>