2 Replies Latest reply: May 9, 2013 1:14 AM by 1007933 RSS

    ADF Mobile : Rest call to a webservice using https - Certificate Error

    ArunBabu
      I'm trying to connect to a web service giving json and which uses https. I am using the following code.
      Also SalesApp connects to https://abc.com

      RestServiceAdapter restServiceAdapter = Model.createRestServiceAdapter();
      restServiceAdapter.clearRequestProperties();
      restServiceAdapter.setConnectionName("SalesApp");
      restServiceAdapter.setRequestType(RestServiceAdapter.REQUEST_TYPE_GET);
      restServiceAdapter.setRetryLimit(0);
      restServiceAdapter.setRequestURI("/sales/rest/v1/resources");
      try {
      response = restServiceAdapter.send("");
      }

      I am getting an error of " Certificate was issued by an unrecognized entity ".
      Is there anyway to ignore the certificate warning ? Any request properties which can help with this?
      I'm not looking at adding any private certificates/verfying the certificate issued by server, just want to ignore the warning
      and proceed with the rest call.