NP, thank you, thank you, thank you.

On Wednesday, June 14, 2017 at 8:20:12 PM UTC-5, NP wrote:
>
> I figured out the problem and my understanding is
>
> 1) GAE was still referring to the old python installation (the one that 
> comes shipped with Mac). When I open the GAE Launcher,  
>
> GAE > Preferences > Python Path is blank.
>
>
> 2) What I needed to do was force GAE to use the newly installed Python 
> (the one I installed with Brew with the direction to use the upgraded 
> OpenSSL). So I have now set
>
> GAE > Preferences > Python Path = /usr/local/bin/python.
>
>
> Everything now works and running the code below from within GAE tells me 
> my TLS is OKAY
>
>
> import urllib2
>
> r = urllib2.urlopen("https://howsmyssl.com/";).read()
>
> return r
>
> Also running the code below now gives me the updated version of OpenSSL
>  import ssl 
> return ssl.OPENSSL_VERSION 
>
> On Wednesday, June 14, 2017 at 9:52:46 AM UTC-7, NP wrote:
>>
>> Can anybody help out here....?
>>
>> Thanks
>>
>> On Tuesday, June 13, 2017 at 9:30:20 AM UTC-7, NP wrote:
>>>
>>> 1) I'm running Google App Engine SDK on Mac OS X El Capitan. I have 
>>> Python 2.7.13
>>>
>>>
>>> 2) While trying to test my app with Stripe, I get the following error
>>>
>>>      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 
>>> https://stripe.com/blog/upgrading-tls.
>>>
>>>
>>> 3) I did some Googling and based on what I found, I did the following
>>>
>>>
>>>    -  Used brew to upgrade my OpenSSL
>>>    - Confirmed that when I do 'which openssl', I get
>>>    
>>>      /usr/local/opt/openssl/bin/openssl
>>>
>>>      and when I do 'openssl version', I get
>>>
>>>     OpenSSL 1.0.2l
>>>
>>>
>>>
>>>    - If I do
>>>    
>>>            >>> import ssl
>>>
>>>           >>> ssl.OPENSSL_VERSION, I get
>>>
>>>           >>> 'OpenSSL 1.0.2l 23 May 2017'
>>>
>>>
>>> But I still get the error from Stripe about not using TLS 1.2.
>>>
>>>
>>> I found this SO question 
>>> <https://stackoverflow.com/questions/42566809/enable-tls-1-2-on-mac-osx> 
>>> but 
>>> it didn't solve my problem. I also found this Google Group Discussion 
>>> <https://issuetracker.google.com/issues/35900856> 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'
>>>
>>>
>>> 4) Based on the earlier referenced Google Group Discussion, I ran the 
>>> following code in both GAE Dev and directly in my python intepreter
>>>
>>>
>>>     import ssl 
>>>
>>>     print ssl.__file__ 
>>>
>>>
>>>
>>> GAE DEV: 
>>> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.pyc
>>>
>>>
>>> Python Interpreter: 
>>> /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.pyc
>>>
>>>
>>>
>>> They're pointing to different files. How do I fix this? How do I get App 
>>> Engine to use the newer version of OpenSSL that I've installed?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2e53b477-c760-44f7-981d-c7e4e82ee52a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to