cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl usage with https

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 3 May 2006 14:20:29 +0200 (CEST)

On Wed, 3 May 2006, Ravi Malghan wrote:

> openssl.exe s_client -connect A.B.C.D:443 |tee logfile
>
> But what I do with the logfile that was downloaded before I use it as a
> certificate is not very clear. 1. do I just extract lines after BEGIN
> CERTIFICATE and before END CERTIFICATE and save it as something like mycert.
> An use --cacert mycert with curl?

You most likely cannot use it stand-alone, you should append it to the
existing cacert file and use that since there's a chain of trust and the
cacert of the signer of that cert needs to be found too (if I've understood
things right).

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-05-03