calling web service over ssl

2 posts, 0 answers
  1. A
    A avatar
    1 posts
    Member since:
    May 2014

    Posted 18 Aug 2014 Link to this post


    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.



  2. Anton Dobrev
    Anton Dobrev avatar
    529 posts

    Posted 21 Aug 2014 Link to this post


    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.

    Anton Dobrev

    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.

Back to Top