Re: Help using libcurl with HTTP proxy on Android device

2023-04-12 Thread David Castillo via curl-library
Okay, I think I have a solution that can work for me :) I used the https://curl.se/libcurl/c/CURLOPT_SSL_CTX_FUNCTION.html callback and I'm reading the der file and adding it to the store, similar to the example in the docs. It's something like this: static CURLcode sslctx_function(CURL *curl,

Re: Help using libcurl with HTTP proxy on Android device

2023-04-12 Thread David Castillo via curl-library
> I'm guessing the app would need the READ_EXTERNAL_STORAGE permission. I have that permission for my app, but looks like the problem is that now on Android you can only access the files that you created (

Re: Help using libcurl with HTTP proxy on Android device

2023-04-12 Thread Dan Fandrich via curl-library
On Wed, Apr 12, 2023 at 03:08:02PM -0700, David Castillo via curl-library wrote: > What permissions does OpenSSL need to read the certificates? I'm guessing the app would need the READ_EXTERNAL_STORAGE permission. -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette:

Re: Help using libcurl with HTTP proxy on Android device

2023-04-12 Thread David Castillo via curl-library
> Surely you can put a text file in > your Android file system and tell your application's libcurl to use that file > as a CA cert? But I don't know beforehand the name of that file, since the user could use different proxies (it's not always a certificate for Charles). Although I guess as a

Re: Help using libcurl with HTTP proxy on Android device

2023-04-12 Thread Daniel Stenberg via curl-library
On Tue, 11 Apr 2023, David Castillo via curl-library wrote: I will take a look at this link you shared and see if I can figure out how to read all certs, convert them and store it in one location. Or maybe I can use the callback that Henrik shared previously (