Discussion:
OpenSSL client through proxy
(too old to reply)
Andrey Petrashenko
2008-02-26 11:14:12 UTC
Permalink
Hello.

I have to connect to my OpenSSL server through proxy server. How can I establish this connection?

Thanks.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
M***@malkom.pl
2008-02-26 20:25:29 UTC
Permalink
Hello,
Post by Andrey Petrashenko
I have to connect to my OpenSSL server through proxy server. How can I
establish this connection?
Establish tcp connection through proxy (connect, socks5, transparent,
reverse or any other)
and next run SSL on this tcp connection.

Best regards,
--
Marek Marcola <***@malkom.pl>

______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
Andrey Petrashenko
2008-02-27 08:29:58 UTC
Permalink
Post by M***@malkom.pl
Hello,
Post by Andrey Petrashenko
I have to connect to my OpenSSL server through proxy server. How can I
establish this connection?
Establish tcp connection through proxy (connect, socks5, transparent,
reverse or any other)
and next run SSL on this tcp connection.
Best regards,
--
Thanks for the answer. I'm a newbie in TCP/SSL programming. Would you suggest any library or function names to use "connect" or "transparent". May be it is supported by OpenSSL?.. or another C/C++ library.

Thanks a lot.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
David Schwartz
2008-02-27 09:35:09 UTC
Permalink
Post by Andrey Petrashenko
Post by M***@malkom.pl
Hello,
Post by Andrey Petrashenko
I have to connect to my OpenSSL server through proxy server.
How can I
Post by M***@malkom.pl
establish this connection?
Establish tcp connection through proxy (connect, socks5, transparent,
reverse or any other)
and next run SSL on this tcp connection.
Best regards,
--
Thanks for the answer. I'm a newbie in TCP/SSL programming. Would
you suggest any library or function names to use "connect" or
"transparent". May be it is supported by OpenSSL?.. or another
C/C++ library.
Could you give us some kind of idea what it is you are trying to do so that
we can give you more precise instructions? Is the proxy being used by the
server or the client? What kind of proxy? Do you have a proxy or need a
proxy? If you have a proxy, what kind of proxy? If you need a proxy, why?

You are straining everyone's ESP here.

DS


______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
Andrey Petrashenko
2008-02-27 12:34:10 UTC
Permalink
Excuse me that my question is too much general.
The situation is like this: I have a client computer in a local network that is behind proxy server so it can not see a SSLServer directly. The SSL server is in Internet area. The type of proxy server is HTTP proxy. The task is a SSL data communication between local client and internet SSL-server. SSL port at the server is opened (without proxy). Of course, I'm using OpenSSL library.
The SSL client trying to connect using "BIO_set_conn_hostname(bio, server_host_port)". Thus, I need to find appropriate functions in the OpenSSL library to setup proxy configuration for the client... or find other solution.
Post by David Schwartz
Post by Andrey Petrashenko
Post by M***@malkom.pl
Hello,
Post by Andrey Petrashenko
I have to connect to my OpenSSL server through proxy server.
How can I
Post by M***@malkom.pl
establish this connection?
Establish tcp connection through proxy (connect, socks5, transparent,
reverse or any other)
and next run SSL on this tcp connection.
Best regards,
--
Thanks for the answer. I'm a newbie in TCP/SSL programming. Would
you suggest any library or function names to use "connect" or
"transparent". May be it is supported by OpenSSL?.. or another
C/C++ library.
Could you give us some kind of idea what it is you are trying to do so that
we can give you more precise instructions? Is the proxy being used by the
server or the client? What kind of proxy? Do you have a proxy or need a
proxy? If you have a proxy, what kind of proxy? If you need a proxy, why?
You are straining everyone's ESP here.
DS
______________________________________________________________________
OpenSSL Project http://www.openssl.org
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
Shaw Graham George
2008-02-27 12:42:19 UTC
Permalink
You need to open a socket to the proxy server and send it an HTTP
CONNECT request.

If the proxy server sends back an OK reply, then it has opened a socket
to the proxy. After that the proxy acts as a port forwarder, so you can
continue your SSL dialog with the proxy as if it was the SSL server.

You should be able to Google the details.

G.


-----Original Message-----
From: owner-openssl-***@openssl.org
[mailto:owner-openssl-***@openssl.org] On Behalf Of Andrey Petrashenko
Sent: 27 February 2008 12:32
To: openssl-***@openssl.org
Subject: Re: OpenSSL client through proxy

Excuse me that my question is too much general.=20
The situation is like this: I have a client computer in a local network
that is behind proxy server so it can not see a SSLServer directly. The
SSL server is in Internet area. The type of proxy server is HTTP proxy.
The task is a SSL data communication between local client and internet
SSL-server. SSL port at the server is opened (without proxy). Of course,
I'm using OpenSSL library.
The SSL client trying to connect using "BIO_set_conn_hostname(bio,
server_host_port)". Thus, I need to find appropriate functions in the
OpenSSL library to setup proxy configuration for the client... or find
other solution.
Post by David Schwartz
Post by Andrey Petrashenko
Post by M***@malkom.pl
Hello,
Post by Andrey Petrashenko
I have to connect to my OpenSSL server through proxy server.
How can I
Post by M***@malkom.pl
establish this connection?
Establish tcp connection through proxy (connect, socks5,=20
transparent, reverse or any other) and next run SSL on this tcp=20
connection.
Best regards,
--
Thanks for the answer. I'm a newbie in TCP/SSL programming. Would=20
you suggest any library or function names to use "connect" or=20
"transparent". May be it is supported by OpenSSL?.. or another C/C++
library.
Could you give us some kind of idea what it is you are trying to do so
that we can give you more precise instructions? Is the proxy being=20
used by the server or the client? What kind of proxy? Do you have a=20
proxy or need a proxy? If you have a proxy, what kind of proxy? If you
need a proxy, why?
Post by David Schwartz
You are straining everyone's ESP here.
DS
______________________________________________________________________
OpenSSL Project http://www.openssl.org
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-***@openssl.org
Automated List Manager ***@openssl.org
Loading...