I’ve taken over a project and am having a hard time implementing the SSL side of things. Our application makes use of libcurl to access remote content from a server. The device is looking for a cacert.pem file to which I have, but am unsure where to place it. I’ve tried to place it in the root of the application but that did not help.
Co workers suggested the file should be placed directly into /sdcard but that did not help either.
Does anyone know where I should place the cacert.pem file within the application to enable it to be used by libcurl?
You can specify where libcurl looks for the CA information using
curl_easy_setoptwithCURLOPT_CAINFO:The following example demonstrates a full SSL session, including specifying the CA certificate file:
http://curl.haxx.se/libcurl/c/simplessl.html