Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Pythonista for Secure Socket Connections?
-
I'm intrigued by Pythonista. I would love to use it for using my iPad to quickly do demos, but that would require that I be able to establish a secure socket connection. Does that capability exist as of yet?
-
import ssl print(ssl.OPENSSL_VERSION) # 'OpenSSL 1.0.1b 26 Apr 2012' print(ssl.OPENSSL_VERSION_INFO) # (1, 0, 1, 2, 15) print(ssl.OPENSSL_VERSION_NUMBER) # 268439599L
Check out the client and server code on: http://docs.python.org/2/library/ssl.html
Also the HowTo at: http://docs.python.org/2/howto/sockets.html
-
Bummer!
Our iOS devices are currently succeptable to the heartbleed bug in OpenSSL... For details, see: http://heartbleed.com
import ssl ; print(ssl.OPENSSL_VERSION) # 'OpenSSL 1.0.1b 26 Apr 2012' -- heartbleed is fixed in OpenSSL 1.0.1g and later
I would expect Apple to release an iOS upgrade in the comming daze to raise the OpenSSL version to 1.0.1g or better but in the meantime, "secure" communications to/from your iOS device are not nearly as secure as you might have thought.
If you used homebrew to install Python on your Mac, I would highly recommend that you again use homebrew to upgrade the OpenSSL that Python and Python3 use. This does not upgrade the system-wide OpenSSL (which is so old that it does not have heartbleed issues) but does upgrade the OpenSSL that homebrew-installed applications use.