curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Programmatically provide CA bundle?

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 28 Apr 2020 17:44:56 +0200 (CEST)

On Tue, 28 Apr 2020, Tom N via curl-library wrote:

> I'm using libcurl with OpenSSL on Linux, Windows, and Mac to post data to a
> secure website. I'd like to provide the CA cert bundle directly via an API
> instead of using the CURLOPT_CAINFO option to specify a file on disk,
> primarily to avoid errors due to the bundle file not being found. Is that
> possible?

Maybe like the cacertinmem.c example?
https://curl.haxx.se/libcurl/c/cacertinmem.html

You will of course still have to make sure that you have the current set of
certs in there.

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-04-28