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 or

WARNING No ssl package found. urlfetch will not be able to validate SSL certificates.

WARNING 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 .

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

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