NDK, Libcurl and SSL: Where to place cacert.pem?

222 views
Skip to first unread message

Kevin Kowalewski

unread,
Aug 23, 2011, 10:19:16 AM8/23/11
to android-ndk
Hi,

I've taken over an Android project and am having trouble getting an
HTTPS connection up and running on the device. There is a cacert.pem
file that is supposed to be able to be read by libcurl when its
accessing the HTTPS content. Unfortunately libcurl fails with error
code 77, stating that it cannot find the cacert.pem file.

I'm not entirely sure where to place this file in the applications
source tree, or where on the device. A co-worker suggested I placed it
in /sdcard but that did not work. Inside libcurl the reference to the
certificate is just "cacert.pem", and thus should probably be placed
where this is being executed from but I don't know where that is.

I look forward to hearing from anyone on this.

Thanks,
Kevin

Nasif Noorudeen

unread,
Aug 23, 2011, 8:05:31 PM8/23/11
to andro...@googlegroups.com
asset folder



--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Reply all
Reply to author
Forward
0 new messages