AppleInside
AppleInside

Reputation: 73

Use two-way auth with certificates in Android

My network relies on 2 main sides:

Firstly I need to configure a 2-way handshake, so I created keys and certificates both for the Server and Client. I've installed the CA-root certificate and the client certificate on Android, and i can see it from Settings -> Security -> Certificates -> User.

Now, if I try to access to my server from the Browser (i.e. Safari), a pop-up shows up asking me which client certificate I want to use, than I select the installed one and everything works properly. Instead if I try to perform the same request from the app, no pop-ups are shown, than I can't select any certificate to my server.

There is any way to specify the use of a certain certificate into an Android Application?

Upvotes: 2

Views: 1165

Answers (1)

AppleInside
AppleInside

Reputation: 73

I found a solution after 5 days of struggle...for both ANDROID or IOS, you need to install a Cordova plugin, to enable you application to retrieve the Client-certificates located somewhere into your WWW folder.

https://github.com/zxyang/cordova-plugin-clientcertificate

Upvotes: 4

Related Questions