gustavogenovese / curl-android-ios

Static libcurl to be used in Android and iOS apps. Build scripts included. No Android source required
641 stars 255 forks source link

build curl with custom certificate bundle #40

Closed ShahidOni closed 7 years ago

ShahidOni commented 7 years ago

Urgent: I want to build libcurl with --with-ca-bundle option in build_Android.sh. Every time i pass a new cacert.pem downloaded from https://curl.haxx.se/docs/caextract.html from this site and build library, after putting that in android, curl response code is always 77 (CURLE_SSL_CACERT_BADFILE). What i am doing wrong. i am building curl with this : ./configure --host=arm-linux-androideabi --target=arm-linux-androideabi \ --with-ssl=$SSLPATH \ --enable-static \ --disable-shared \ --disable-verbose \ --enable-threaded-resolver \ --enable-libgcc \ --enable-ipv6 \ --with-ca-bundle=cacert.pem \ It builds fine. But can not establish ssl connection with https site.