cordova-plugin-client-certificate
cordova-plugin-client-certificate copied to clipboard
Using a dynamic certificate and android
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:
-
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
-
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
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];