Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8901919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:28:53+00:00 2026-06-15T01:28:53+00:00

has anybody any experience with using client certificates for authentication and PhoneGap? I have

  • 0

has anybody any experience with using client certificates for authentication and PhoneGap? I have a web application secured by client certificates and I now would like to access this web app using PhoneGap. The web application refuses my request because it could not authenticate me because no certificate was found. I downloaded the client certificate with data format PKCS#12 via Androids default browser but I guys it is now only stored in the browsers keystore instead of a global keystore of Android or something like this. So to summarize this:

1.) Is it possible to use client certificates for authentication on Android anyway?
2.) If yes, is it also possible with PhoneGap?
3.) If yes again, how can i accomplish it?

Thanks!

Regards, Ralf

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:28:54+00:00Added an answer on June 15, 2026 at 1:28 am

    Better late than never: the problem for android 4+ (at least till SDK 16) is that webview rejects client certificate authentication with SDK’s hidden onReceivedClientCertRequest, which cannot be overriden.

    This can be bypassed with including hidden classes to android.jar (see https://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/) and then compiling cordova (from https://github.com/apache/incubator-cordova-android) with overriden CordovaWebViewClient::onReceivedClientCertRequest.

    I did it so that the app on init loads privatekey and certificate chain (user selects it from keychain just on first app exec). This should be done in another thread; I suspect this is the reason client cert authentication is not supported yet as main thread would wait for user to select certificate to use and/or certificate chain to be loaded, which is unacceptable.

    EDIT:
    This was short lived: it seems there the onReceivedClientCertRequest is removed in Android 4.2 (SDK 17)

    The conclusion was too quick: they just moved the functionality to WebViewClientClassicExt class, so you just need to extend CordovaWebViewClient from it and not WebViewClient, and it works for 4.2 also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi, does anybody has any experience with layouting a dojo mobile application? I would
Has anybody got any kind of experience with dynamic programming using WCF. By dynamic
Has anybody had any hands-on experience using Devexpress ASP.NET components with Delphi Prism? At
Has anybody any experience in using Gupta (formerly Centura) Team Developer? If so, what
Has anybody written a plugin for outlook web access? Are there any resources to
Has anybody had any experience with COM / MFC trying to implement IConnectionPointContainer on
I have a Delphi application that has many dependencies, and it would be difficult
Anybody has any idea what happened to my maven build? I am getting a
How can I draw candle charts in C#? Does anybody has any examples with
I have written a voice streaming application in iPhone using AudioQue. At the audio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.