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

calling web service over ssl

1 Answer 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
A
Top achievements
Rank 1
A asked on 18 Aug 2014, 01:47 PM

Hello,

I'm writing a prototype app that eventually will need to call a web service
over https, I'm using jquery ajax calls to GET url and display data. So far it
works fine when it's simple http requests. However I can't find what I need to
configure for https requests to work. For my development I'm using Windows
Telerik App Builder.

I have .p12 file and tried importing it into User Options->General Tab->
Cryptographic Identities, but after import it does not show up in the list of
Cryptographic Identities. We are focusing on iOS at this point.

Any suggestions would be really helpful.

Thanks!

Anoush


1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 21 Aug 2014, 03:47 PM
Hello,

Unfortunately, client authentication is not something doable out-of-the-box with the Cordova framework and is currently not supported in AppBuilder also. The native UIWebView in iOS could not intercept a stored certificate and send it to the server through AJAX calls.

The general recommendation in such cases is to construct a Cordova plugin that handles the client certificate authentication and SSL pinning and use native Objective-C calls implemented in the plugin instead of jQuery.ajax(). Here is a very interesting blog post on this matter that outlines the whole workflow in Cordova. Another useful information about the native part can be found here and here.

In addition, we believe that a client side authentication is a very meaningful scenario and we would therefore like to support it within AppBuilder. The development team is currently investigating the options for implementing this without a plugin but with a suitable native protocol that an AJAX request can utilize. However, as this task requires an extensive research, our team needs more time.

I will make sure to update this thread as soon as we have more progress on the task.

Regards,
Anton Dobrev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
A
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or