I have gone through the following link http://docs.appcelerator.com/titanium/3.0/#!/guide/SSL_Certificate_Store_Support_for_HTTP_Clients
Below is the example for IOS provided in the appcelerator website
var certificateStore = require('com.certtest'); var url = "https://some.url"; var httpClient = Ti.Network.createHTTPClient({ onload : function(e) { Ti.API.info("Received text: " + this.responseText); alert('success'); }, onerror : function(e) { Ti.API.info("Error: " + e.error); alert('error'); }, timeout : 5000,
// this property must be set to true
validatesSecureCertificate: true
});
// References a file called server.p12 in the Resources directory var cert = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, "server.p12");
// Call the module method and send the HTTPClient object // to set the clientCertificateIdentity property certificateStore.loadP12Cert(httpClient, cert, 'password');
httpClient.open("GET", url); httpClient.send();
I am unable to find the "com.certtest" module. Please let me know from where I will get the IOS module