how to build ssl on window

Ng Pheng Siong ngps at madcap.dyndns.org
Tue Jul 25 11:09:02 EDT 2000


According to  <ryzam at my-deja.com>:
> Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import sys
> >>> sys.path
> ['C:\\PROGRA~1\\PYTHON\\TOOLS\\IDLE', 'C:\\Program
> Files\\Python\\win32', 'C:\\Program Files\\Python\\win32
> \\lib', 'C:\\Program Files\\Python', 'C:\\Program
> Files\\Python\\Pythonwin', 'C:\\PROGRA~1\\PYTHON\\BATCHG~1
> \\PYTHON', 'C:\\Program Files\\Python\\Lib\\plat-win', 'C:\\Program
> Files\\Python\\Lib', 'C:\\Program Files\\Python\\DLLs', 'C:\\Program
> Files\\Python\\Lib\\lib-tk', 'C:\\PROGRAM
> FILES\\PYTHON\\DLLs', 'C:\\PROGRAM FILES\\PYTHON\\lib', 'C:\\PROGRAM
> FILES\\PYTHON\\lib\\plat-win', 'C:\\PROGRAM FILES\\PYTHON\\lib\\lib-
> tk', 'C:\\PROGRAM FILES\\PYTHON']'

Ok, if you've unzip'ed m2crypto-0.05-snap3-win32.zip into 
c:\program files\python, you should get 
c:\program files\python\m2crypto-0.05-snap3\...

Move the directory
c:\program files\python\m2crypto-0.05-snap3\M2Crypto
one level up, into
c:\program files\python
meaning you now have
c:\program files\python\M2Crypto

Now look at 
c:\program files\python\m2crypto-0.05-snap3\demo\ssl\https_cli.py

Change the host and port to point to a https server somewhere,
then execute it: python https_cli.py.

If you don't have a https server handy, then look at
c:\program files\python\m2crypto-0.05-snap3\demo\https\START.py


Hope this helps.

-- 
Ng Pheng Siong <ngps at post1.com> * http://www.post1.com/home/ngps




More information about the Python-list mailing list