httplib socket.sslerror handshake failure python 2.4.3

Viewed 44

I have this code with httplib where config.testConnection is an xlm string.

conn = httplib.HTTPSConnection(url1)
conn.request('POST', url2, config.testConnection, config.headers)
response = conn.getresponse()
data = response.read().decode('utf-8')

But I have ssl error : socket.sslerror: (1, 'error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure')

With Python 2.4 I cannot use ssl._create_unverified_context() and I really need verified HTTPS connexion.

I have found this kind of pages https://bugzilla.redhat.com/show_bug.cgi?id=1064942 which sais that it might be a bug between python on server and java of webservice.

But I cannot modify any packages like this. Is there a workaround directly to put in code please ?

0 Answers
Related