Pages

Wednesday, November 9, 2011

How to install the SSL module for the AppEngine SDK on OS X

AppEngine SDKs for Python and Go both depend on the Python 2.5 runtime, which does not include the ssl module out of the box. Without the ssl module, you'll see the following warnings when you run dev_appserver.py or appcfg.py:

WARNING urlfetch_stub.py:111 No ssl package found. urlfetch will not be able to validate SSL certificates.

WARNING appengine_rpc.py:435 ssl module not found.
Without the ssl module, the identity of the remote host cannot be verified, and
connections may NOT be secure. To fix this, please install the ssl module from
http://pypi.python.org/pypi/ssl .


Here's how to fix it.
  1. Download the ssl source for Python 2.5 from http://pypi.python.org/pypi/ssl#downloads and uncompress the package.
  2. From that directory, run:
    CC='/usr/bin/gcc-4.0' python2.5 setup.py build

    sudo python2.5 setup.py install
  3. Done. No more pesky security warnings.

1 comment: