Results 1 to 7 of 7

Thread: Ext.Ajax.request over HTTPS failure

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    12
    Answers
    1

    Default Answered: Ext.Ajax.request over HTTPS failure

    Hi,

    I need to communicate with the server using HTTPS protocol.

    My requests work well over HTTP while when I switch to HTTPS entirely, I am getting status 0 failures for both GET and POST requests.
    Wireshark on Server side, Port 443 shows client Hello messages and server response with certificate and nothing else (no attempts of further communication)

    The certificate is installed on the device, so no issues there.

    The code is very simple -
    Code:
    Ext.Ajax.request({
            url : serviceUrl,
            timeout : 15000,
            jsonData : payload,
            method : 'POST',
            headers : {
               'Content-Type' : 'application/json'
                Authorization : authString
            },
            success : successCallback
            failure : failureCallback
        });
    Above works OK over HTTP.

    Looks similar to http://www.sencha.com/forum/showthread.php?248437

    'Resource failed to load' at line 314, Conection.js

  2. OK, solved by adding Root CA certificate to configuration profile.

  3. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    12
    Answers
    1

    Default

    Upd2:
    Looks it is due to certificate was issued by RootCA. Solved it in Chrome so far;
    Has anyone ogt experience getting this working on real device (iOS)?

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    12
    Answers
    1

    Default

    OK, solved by adding Root CA certificate to configuration profile.

  5. #4
    Sencha User
    Join Date
    May 2013
    Location
    Costa Rica
    Posts
    11

    Default

    Hello! Could you explain me how can I add my certificate to the configuration profile?

  6. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    12
    Answers
    1

    Default

    Please see iPhone Configuration Utility:

    http://support.apple.com/kb/DL1466

    You can also upload your RootCA on some web site and let iPhone users download it from there. AFAIK it worked for me then. It was a while ago..

  7. #6
    Sencha User
    Join Date
    May 2013
    Location
    Costa Rica
    Posts
    11

    Default

    Oh I see, and it is possible do this on Android 4.1.1?

  8. #7
    Sencha User
    Join Date
    Jul 2012
    Posts
    12
    Answers
    1

    Default

    This is not related to Android at all. Guessing that you could try adding your Root Certificate to truststore but I am not sure how this works on Android at all.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •