cordova-plugin-client-certificate icon indicating copy to clipboard operation
cordova-plugin-client-certificate copied to clipboard

Using a dynamic certificate and android

Open pliablepixels opened this issue 8 years ago • 1 comments

Hello there, I just discovered this plugin- thanks for the work.

I have an ionic/cordova home security app that is downloaded by users from the app/play store. Some of them have requirements to use a client certificate. I have a few questions:

  1. How does one go about allowing the user to upload a client certificate to the app ? The code example shows copying the certificate to the www/ folder, which is not possible for a signed app on the play store/app store

  2. It looks like this is iOS only for now. I saw some commits for Android but was curious if it works today? I use crosswalk for Android devices < 5 and native web view for 5.0 and above

thanks

pliablepixels avatar Apr 19 '16 10:04 pliablepixels

For iOS I solved this problem as follows: Added UIFileSharingEnabled property in the settings (*.plist) and upload certificate file via itunes Then build path like this:

NSString *documentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
documentsDirectory = [documentsDirectory stringByAppendingString:@"/"];
path = [documentsDirectory stringByAppendingString:path];

kluverua avatar Mar 21 '18 14:03 kluverua