PDA

View Full Version : Some https links connect succesfull, others not



blokkendoos
9th August 2012, 13:00
I try to create a Python script for downloading my IS invoices. Connecting to the server results in a time-out. It looks like the HTTPS server hello msg is not sent. Ignore SSL errors does not help.

The Wireshark data capture shows TLSv1 is used in the FireFox session (in which a Server Hello is returned) and SSL in the Qt session. For the successfull banksite TLSv1.2 is used both by FireFox and Qt. Based on the Qt doc on SSL/TSL and certificates I assumed that Qt manages the appropriate protocol (SSL/TSL) and version to be used.

So my question is, what causes the one HTTPS Server to connect and the other not? And moreover, what to do to make Qt successfully connect to the latter?

Regards,
Johan

Attached are the scripts and Wireshark data capture textfiles.
Both scripts connect successfully to the bank (https://bankieren.rabobank.nl) but not to the IS (https://www.ziggo.nl)
webkit_test_ssl.py - simple as possible script
webkit_example_1_simple.py - effort to get more detailed error info
capture_rabobank_qt - successful Qt connect to bank
capture_rabobank_firefox - successfull FireFox connect to bank (not attached, due to file # limitations)
capture_ziggo_firefox - successfull FireFox connect to IS
capture_ziggo_qt - failed connect to IS

Details
Snow Leopard (OS X 10.6.8) Webkit version 6534.57.2 (== Webkit 5.1.7, I assume, based on Google result "Webkit version 6534.57.2")
Python 2.7 (Macports package)
PyQt4 (py27-pyqt macports package)

blokkendoos
22nd August 2012, 12:07
Setting the SSL protocol and switching of JavaScript makes the script work. Not really clear to me why, in particular the latter as JS is used to generate content and my script uses JS to generate onClick events. Anyway, it is solved now. Attached is a working version.
Regards,
Johan