How to run django runserver over TLS 1.2
<p>I'm testing Stripe orders on my local Mac OS X machine. I am implementing this code:</p>

<pre><code>stripe.api_key = settings.STRIPE_SECRET

        order = stripe.Order.create(
          currency = 'usd',
          email = 'j@awesomecom',
          items = [
                    {
                      "type":'sku',
                      "parent":'sku_88F260aQ',
                      "quantity": 1,
                    }
                  ],
          shipping = {
            "name":'Jenny Rosen',
            "address":{
              "line1":'1234 Main Street',
              "city":'Anytown',
              "country":'US',
              "postal_code":'123456'
            }
          },
        )
</code></pre>

<p>I receive an error:</p>

<blockquote>
  <p>Stripe no longer supports API requests made with TLS 1.0. Please
  initiate HTTPS connections with TLS 1.2 or later.</p>
</blockquote>

<p>I am using django 1.10 and python version 2.7.10</p>

<p>How can I force the use of TLS 1.2?  Would I do this on the python or django side?</p>

<p>I solved installing this libraries:</p>

<pre><code>pip install urllib3
pip install pyopenssl
pip install ndg-httpsclient
pip install pyasn1
</code></pre>

<p>solution from: </p>

<blockquote>
  <p><a href="https://github.com/pinax/pinax-stripe/issues/267" rel="nofollow">https://github.com/pinax/pinax-stripe/issues/267</a></p>
</blockquote>

python django python-2.7 ssl tls1.2