This is a migrated thread and some comments may be shown as answers.

Accept Self signed certificate ajax

2 Answers 566 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Etienne
Top achievements
Rank 1
Etienne asked on 24 Jan 2013, 01:29 PM
Hello,

I have an application in icenium that call a rest/json wcf service using jquery. When the calls are made using a non-encrypted connection (http) everything behaves as it should. However, when I use a ssl encrypted connection (https) all my ajax calls fail. I figure this is related to the self-signed certificate I use to test.

I was wondering if there was any way to accept self-signed certificates. I even installed the certificates on my iPad and still can't get it to work.

Any help would be greatly apreciated.

2 Answers, 1 is accepted

Sort by
0
Etienne
Top achievements
Rank 1
answered on 25 Jan 2013, 03:57 PM
According to some research I did, it's possible to set a white list of domains in cordova. The file is corcova.plist in the case of the ios app. 

Is there any way to modify that file in icenium or is this restricted?
0
Jan-Dirk
Top achievements
Rank 1
answered on 21 Feb 2013, 10:58 AM
No, you can't alter the cordova.plist with Icenium.

Here is a similar problem on stackoverflow, I hope the answer that has been given to the person who asked works for you: http://stackoverflow.com/questions/3560881/does-phonegap-support-https-ajax-requests
Tags
HTML5, CSS, JavaScript
Asked by
Etienne
Top achievements
Rank 1
Answers by
Etienne
Top achievements
Rank 1
Jan-Dirk
Top achievements
Rank 1
Share this question
or