Openssl through HTTP Proxy (cUrl?)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Greetings all,

I need to get an SSL certificate from a server outside of my corporate
network. Inside the network, we use "openssl s_client -connect
host:port" to get that and then use other openssl commands to get some
information of interest. However, when accessing external sites, we
must pass through an NTLM authenticated proxy and therefore direct
connections simply give a connection refused. I Googled for some time
and found no resolution to using openssl over a proxy.

So I thought of using cUrl in some way, which can connect through the
proxy if provided with proper options and authentication. So this
allows me to connect to external sites and enabling "verbose" mode
will allow me to output some of the certificate info (issuer, exp
date, etc), but not all the info I can grab with openssl.

So the question is, is anyone aware of a way to either connect with
openssl over a NTLM authenticated proxy or retrieve all the SSL cert
info using cUrl or some other function (maybe a combination of opening
a connection with cUrl and having openssl commands run over this

Re: Openssl through HTTP Proxy (cUrl?)


on 09/07/2010 05:16 PM Daniel said the following:
Quoted text here. Click to load it

You may want to try this HTTP client class. It supports SSL and several
authentication mechanisms including NTLM.

You also need this package to provide NTLM client support.


Manuel Lemos

JS Classes - Free ready to use OOP components written in JavaScript /

Site Timeline