Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::asio SSL connection thru proxy server
From: Brodie Thiesfield (brofield2_at_[hidden])
Date: 2010-08-31 00:40:54


You appear to need to use the CONNECT method. All information found by
googling "SSL via proxy" or similar. References below are out of date,
but appear to still be the latest.
http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling
http://tools.ietf.org/html/draft-luotonen-ssl-tunneling-03

Regards,
Brodie

On Tue, Aug 31, 2010 at 8:25 AM, Kumar, Akhilesh
<Akhilesh.Kumar_at_[hidden]> wrote:
> Since I need to connect to secure server before I can do handshake, If I
> connect to proxy 1st (I will have to do this if I am going thru proxy) how
> do I connect to secure server for Handshake. If I connect to proxy and do
> handshake it does not make sense logically and it does fails(“asio.ssl
> error”) if I try doing this. So the question is If I connect to Proxy 1st
> how do I create another secure socket and connect it to secure server which
> know that it has to go thru proxy?
>
>
>
> This is the connection I want to established.
>
> SecureSocket -> Proxy ->SecureServer.
>
>
>
> Thanks,
>
>
>
> Akhilesh Kumar
>
>
>
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Sam Miller
> Sent: Monday, August 30, 2010 3:26 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] boost::asio SSL connection thru proxy server
>
>
>
>> "Kumar, Akhilesh" <Akhilesh.Kumar_at_[hidden]>
>>
>> Here is my code snippet to connect to a server without proxy, This
>> code works fine I have tested it, my question is what changes I need
>> to make if I have to go thru proxy to connect to server.
>
> Why do you assume changes are required? Have you tried connecting to a
> proxy? Does it work using your existing code?
>
> Sam
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net