SSL Support for Windows version of Python 2.3

Author: Marcin Szczepanski ( marcin@junkheap.net)
Date: 13 April 2004

Introduction

The default distribution of ActiveState ActivePython does not include support for SSL in the socket library. This means that, amongst other things, you cannot use the HTTPSConnection object for getting web pages via HTTPS.

The file below contains the required "_ssl.pyd" file which provides SSL support for the socket library. It was compiled using OpenSSL 0.9.7d and the ActiveState Python 2.3.2-231 source.

Download

Python 2.3 SSL socket support for Windows: py23-win32-ssl.zip (225KB)

Installation

To install simply decompress _ssl.pyd from the ZIP file into your \Python23\DLLs\ directory. To test, run python and type:

	>>> import socket
	>>> socket.ssl

You should see:

<function ssl at 0x00000000>

Where the number at the end will be something other than 0s.

If you get "AttributeError: 'module' object has no attribute 'ssl'" then your socket object has no SSL support, so something is not working. Either you placed the file in the wrong directory or something else has gone wrong.

There are no other files required as the provided file is statically linked with the required OpenSSL DLLs.