cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cert files

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Mon, 17 Oct 2011 22:03:23 -0400

On Mon, Oct 17, 2011 at 9:17 PM, Jeff Pohlmeyer <yetanothergeek_at_gmail.com>wrote:

> On Mon, Oct 17, 2011 at 4:00 PM, Perry Smith wrote:
>
> > my question is, where can I store the cacert,perm file so that curl,
> > or libcurl, or openssl can find it automatically.
>
> I don't know anything about AIX but on Linux there is a tool called
> "strace" that can help track down where a program is looking for its
> files.
>
> Maybe AIX has something similar?
>

I haven't touched AIX for a long time, but just for giggles I downloaded
from curl.haxx.se the most recent AIX build of curl (7.15.1) that was
compiled for AIX by The Written Word. "strings" on the lpp package showed
there's a curl-config parked here:

     /opt/TWWfsw/curl715/bin/curl-config

Your milage may vary, depending on who compiled the version you have, but if
curl-config is handy, there's an option which will tell you where the
ca-bundle is located. e.g.

     curl-config --ca

           /opt/TWWfsw/curl715/share/ca-bundle.crt

You should be able to cat your certificate pem file onto the end of the
bundle.

Ralph Mitchell

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-18