python - ssl handshake failure when using getpage() with python26-twisted -


i getting handshake failure problem getpage() twisted.

i using amazon linux ami release 2015.03. ships python 2.6.9 , twisted version using is:

python26-twisted-web-8.2.0-3.2.3.amzn1.x86_64 python26-twisted-core-8.2.0-4.7.amzn1.x86_64 python26-twisted-words-8.2.0-3.2.3.amzn1.x86_64 

the code here:

from twisted.web import client  twisted.internet import reactor  if __name__ == "__main__":     def do( ):         df = client.getpage(             url = "https://ui2web1.apps.uillinois.edu/banprod1/bwskfcls.p_getcrse",             followredirect = true,         )         def printonerror( error ):             print 'e', error         def printonsuccess( page ):             print 's', page         df.adderrback( printonerror )         df.addcallback( printonsuccess )         return df     reactor.callwhenrunning( )     reactor.run() 

the error getting is:

e [failure instance: traceback (failure no frames): <class 'openssl.ssl.error'>: [('ssl routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure'), ('ssl routines', 'ssl3_read_bytes', 'ssl handshake failure')] ] s 

any highly appreciated.


Comments