SSL on Windows?

Robert Towster rtowster at
Thu May 11 22:54:26 CEST 2000

I need to do this too..
I DL M2Crypto windows binary release (0.4 because 0.5 release RSN)
now I only need to do a SSL client (to hit an existing server). I
playing with the demos.. (specifically
I keep getting PRNG not seeded. (see traceback below)
The line that apparently seeds PRNG is this:
Rand.load_file('../randpool.dat', -1)
I can change it so that it points to a different file and then the
script will
make the SSL connection and get the web page but it causes an invalid
page fault
in python.dll

My ultimate destination is to make a script that will do a https post to
and get a response.. 
I can get a perl library to do this.. but.. I wanna use python =)


C:\Program Files\Python\Lib\demo\ssl>"c:\program
LOOP: SSL connect: before/connect initialization
LOOP: SSL connect: SSLv3 write client hello A
LOOP: SSL connect: SSLv3 read server hello A
LOOP: SSL connect: SSLv3 read server certificate A
LOOP: SSL connect: SSLv3 read server key exchange A
LOOP: SSL connect: SSLv3 read server done A
INFO: SSL connect: SSLv3 write client key exchange A
Traceback (innermost last):
  File "", line 37, in ?
    s.connect((host, port))
  File "C:\Program Files\Python\Lib\M2Crypto\SSL\", line
81, in con
    return self._check_ssl_return(m2.ssl_connect(self.ssl))
  File "C:\Program Files\Python\Lib\M2Crypto\SSL\", line
48, in _ch
    raise Err.SSLError(Err.get_error_code(), self.socket.getpeername())
M2Crypto.Err.SSLError: SSLEAY_RAND_BYTES: ('', 443): PRNG not

C:\Program Files\Python\Lib\demo\ssl>

Ng Pheng Siong wrote:
> According to The Dude  <calvin at>:
> > There is an SSL interface for Python. First you will need an SSL
> > library,
> > for example from, then the SSL wrapper from
> >
> > You will need Perl for Win32 (
> > to install OpenSSL on Windows.
> <plug>
> M2Crypto at
> Gives you OpenSSL's crypto, SSL and S/MIME.
> </plug>
> Cheers.
> --
> Ng Pheng Siong <ngps at> *

More information about the Python-list mailing list