calling web service over ssl

A

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

Anton Dobrev

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.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.