Software Archive
Read-only legacy content
17061 Discussions

ajax call through ssl

Alessandro_S_
Beginner
494 Views

I have changed my connection to server. My server now has a certificate issued by a selfmade CA. In XDK call to https work because I have installed the CA certificate on the machine I run XDK on. On the real device it doesn't work.

How to install CA certificate on device? (both Android and iOS)

Thank You

0 Kudos
2 Replies
Rakshith_K_Intel
Employee
494 Views

Long term you should use a Certificate Authority to sign your cert.

There is a cordova plugin that will allow you to work around the SSL cert issue: https://www.npmjs.com/package/cordova-plugin-certificates, try this.

Another option that may work is by converting your cert to DER format, put it on a server and access from a web browser, this will prompt to add the cert, and then the app should work for your device only.

0 Kudos
Alessandro_S_
Beginner
494 Views
Thank you for answering. I've already tried this plugin but the android build crashes with cordova 5.1.1
0 Kudos
Reply