M2Crypto hangs on this URL
Heikki Toivonen
hjtoi-better-remove-before-reply at comcast.net
Wed Jul 29 00:16:38 EDT 2009
John Nagle wrote:
> There's something strange about this URL:
>
> "https://sagar310.pontins.com/sraep/"
The following program finishes fine for me using M2Crypto 0.20beta1 +
openssl 0.9.8g. Like Martin mentioned in another message, maybe someone
fixed the site.
from M2Crypto import SSL
ctx = SSL.Context()
# If you comment out the next 2 lines, the connection won't be secure
#ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, depth=9)
#if ctx.load_verify_locations('ca.pem') != 1: raise Exception('No CA certs')
c = SSL.Connection(ctx)
c.connect(('sagar310.pontins.com', 443))
c.send('GET /sraep/ \n')
c.close()
--
Heikki Toivonen - http://heikkitoivonen.net
More information about the Python-list
mailing list