Lets Start with Android !
we have a React Native App, we need to request a SEQURED endpoint (server).
and need works example code:
a. react native fetch https request to our Endpoint : (https:[login to view URL])
b. in the second hand, Android Java OkHttpClient with Client Certificate request, i mean:
the java can get the request from the react native (the requested URL), and makes a request by sending Client certificate and password to our secured Endpoint and get response.
b.1: Add our Certificate file into our project as a raw resource.
b.2: Create a KeyManagerFactory.
b.3: Create an SSL Context that contains our trusted CAs.
b.4: Use the generated OkHttpClient
and make Clean Certificated request.
* please don't ask about the Endpoint, you can make a request to any endpoint, just i need working example.
* i need a package with dependencies to run it up on my Android Studio.