curl-library
Re: Location to curl-ca-bundle.crt
From: Gisle Vanem <giva_at_bgnett.no>
Date: Mon, 27 Nov 2006 17:30:10 +0100
Date: Mon, 27 Nov 2006 17:30:10 +0100
"Mohit Anchlia" <mohitanchlia_at_gmail.com> wrote:
> Problem is this application is already in production and we don't want to
> re-compile the applicationa and go through whole process. Is there a way to
> set environment variable that libcurl could use at runtime to override the
> default position of curl-ca-bundle.crt. Or anything else that you suggest
> that doesn't involve re-compilation.
Add this to your CFLAGS while building libcurl:
-DCURL_CA_BUNDLE='getenv("CURL_CA_BUNDLE")'
Then before running your application, set $CURL_CA_BUNDLE to whereever
your CA bundle is.
--gv
Received on 2006-11-27