SSL (HTTPS) with 2.4

Andrew Bushnell awb at fluent.com
Fri May 20 07:31:24 EDT 2005


That would be nice if something could be added to the distribution.

In general, what needs to be done is as follows:

#1: Connect to proxy host:port
#2: Send "CONNECT" request with host:443 of secure url you want to 
"tunnel" to. Additional headers can be added depending on authorization 
needed for connection.
#3: Once connection is established, setup a SSL handshake/connection via 
the proxy then start getting/sending data.

I have steps #1 and #2 down and working with no problems, I keep getting 
  hung up on step 3 and that is where the SSL Errors are occuring for me 
with squid etc.




Bloke wrote:
> Ideally, we should aim at a 'fix' that can be included in the
> distribution.  I am going to look at what communication goes on between
> the proxy server and a working browser by monitoring the traffic.  From
> what i understand, the proxy needs to be told first to set up a secure
> connection with the web site, and only then do you pass the url to the
> proxy.
> 
> 
> Bloke
> 

-- 
************************************
Andrew Bushnell
Lead Development Engineer
Fluent Inc.
10 Cavendish Court
Centerra Resource Park
Lebanon, NH  03766
awb at fluent.com
Phone: 603-643-2600, ext. 757
Fax: 603-643-1721
www.fluent.com
************************************



More information about the Python-list mailing list