title: Enable TLS 1.2 on Mac OSX
body: <p>I am pulling my hair out trying to get a Django application working with Stripe on my local machine with OSX 10.12.3. The error I get when trying to run a test payment is:</p>
  
  <blockquote>
    <p>PermissionError at /register Request req_ADIwntj3xGaqUF: 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>
  </blockquote>
  
  <p>I successfully upgraded openssl using brew. When I run <code>openssl version</code> the output is:</p>
  
  <pre><code>OpenSSL 1.0.2k  26 Jan 2017
  </code></pre>
  
  <p>When I run <code>which openssl</code> the output is:</p>
  
  <pre><code>/usr/local/opt/openssl/bin/openssl
  </code></pre>
  
  <p>I found instructions on stack overflow that said to run <code>brew link --force openssl</code>. When I do that the error is:</p>
  
  <blockquote>
    <p>Warning: Refusing to link: openssl Linking keg-only openssl means you
    may end up linking against the insecure, deprecated system OpenSSL
    while using the headers from Homebrew's openssl. Instead, pass the
    full include/library paths to your compiler e.g.:<br>
    -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib</p>
  </blockquote>
  
  <p>Can anybody help me get this working?</p>