Tunneling LWP https requests through an existing socket.
am 27.06.2007 00:41:35 von pknewsgroups
Hello!
Any ideas how I could re-use an existing socket (for example
IO::Socket::Socks connection to a socks proxy server) to send https
traffic through it?
The problem which I am facing is that there seems to be no way I can
tell Net::SSL package to use an existing file handle/socket for sending
data.
Net::SSL's connect() function calls only Crypt::SSLeay::Conn->new(); to
create a new socket and there is no way I can override it or pass my
socket to it.
Any ideas how I could get it working?
P.Krumins
Re: Tunneling LWP https requests through an existing socket.
am 27.06.2007 17:14:59 von pknewsgroups
Peteris Krumins [Newsgroups] wrote:
>
> Hello!
>
> Any ideas how I could re-use an existing socket (for example
> IO::Socket::Socks connection to a socks proxy server) to send https
> traffic through it?
> The problem which I am facing is that there seems to be no way I can
> tell Net::SSL package to use an existing file handle/socket for
> sending data.
>
> Net::SSL's connect() function calls only Crypt::SSLeay::Conn->new();
> to create a new socket and there is no way I can override it or pass
> my socket to it.
>
>
> Any ideas how I could get it working?
Ok, having researched a little more I found that the other way to get
SSL going is by using IO::Socket::SSL which provides a nifty constructor
start_SSL($socket)
which uses an existing socket for communications.
Now if only I could get IO::Socket::SSL working under ActiveState Perl...
P.Krumins
Re: Tunneling LWP https requests through an existing socket.
am 27.06.2007 19:18:16 von pknewsgroups
Peteris Krumins [Newsgroups] wrote:
> Peteris Krumins [Newsgroups] wrote:
>>
>> Hello!
>>
>> Any ideas how I could re-use an existing socket (for example
>> IO::Socket::Socks connection to a socks proxy server) to send https
>> traffic through it?
>> The problem which I am facing is that there seems to be no way I can
>> tell Net::SSL package to use an existing file handle/socket for
>> sending data.
>>
>> Net::SSL's connect() function calls only Crypt::SSLeay::Conn->new();
>> to create a new socket and there is no way I can override it or pass
>> my socket to it.
>>
>>
>> Any ideas how I could get it working?
>
> Ok, having researched a little more I found that the other way to get
> SSL going is by using IO::Socket::SSL which provides a nifty
> constructor start_SSL($socket)
> which uses an existing socket for communications.
>
> Now if only I could get IO::Socket::SSL working under ActiveState Perl...
Got it all working!!!
Just a note to anyone who might have a similar problem.
I got IO::Socket::SSL working under ActiveState Perl by getting this
package and Net::SSLeay package from
http://theoryx5.uwinnipeg.ca/ppms/
After `ppm install http://theoryx5.uwinnipeg.ca/ppms/package.ppd` both
packages it all just started working, whew!
P.Krumins