[AC-1462] " Unable to securely connect to XXXXXXXXXXX with the latest TLS. Trying again with TLS1.0. It is highly suggested that the server be updated to the latest TLS support." The application does not run in simulator.
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2014-05-04T05:34:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Sherin Michael |
Assignee | Ritu Agrawal |
Created | 2014-04-30T05:06:24.000+0000 |
Updated | 2016-03-08T07:37:54.000+0000 |
Description
When tried to run titanium code base using SDK 3.2.2 and IOS SDK 7.1 getting the eerror " Unable to securely connect to XXXXXXXXXXX with the latest TLS. Trying again with TLS1.0. It is highly suggested that the server be updated to the latest TLS support." The application does not run in simulator.
Attachments
Please let us know which server you are connecting to here. It would be great if you can provide a simple test to reproduce this issue.
Server details can not be given because its confidential. Test - just trying to connect to the server by sending a SOAP request results in the error. All i know about is - http://www.appcelerator.com/blog/2012/11/the-titanium-sdk-and-certificate-validation/ So wanted to know if there is any settings be changed in order to bypass the TLS checking from the titanium studio , other than upgrading the server.
Have you tried setting tlsVersion, in your application using setTlsversion method, to the version your server supports? We do not need the actual server information but what TLS version you are running there. We also need a Titanium test case to see how you are using this functionality. http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Network.HTTPClient
What I do is function makeCall(payload, callback) { var currentReq = Titanium.Network.createHTTPClient(); currentReq.onload = function() { //some code here } currentReq.onerror = function(e) { //some code here Ti.API.info("Error on Request",+e.error); } I am getting "NaN" in the console. The payload is a SOAP request. When I set currentReq.setTlsVersion(1.0), the above said error is not displayed. But the request fails and am getting "Nan" as the error. The cod eworks fine in simulator 6.1 without setting the tlsversion. Server is using version 1.0
We will not be able to diagnose this issue without a complete runnable test case and access to your server. We are resolving this ticket due to the lack of a proper test case but let us know if you can provide this information and we would be happy to reopen this ticket.
Please follow this test case: 1.Create a new classic project in Titanium. (In Titanium Studio 3.2.1, SDK 3.2.2. , CLI 3.2.1, IOS SDK 7.1 , Mavericks, Xcode 5.1) 2. Paste the following code in app.js ~ makeCall(); function makeCall() { var currentReq = Titanium.Network.createHTTPClient(); currentReq.setTimeout(300000); currentReq.onload = function() { }; currentReq.onerror = function(e) { var status =this.status; var statusText = this.statusText; alert("Error on Request",+e.error); }; currentReq.open("GET", "http://developer.appcelerator.com/assets/img/DEV_appteam_photo.png"); currentReq.send(); } ~ 3. Run the project in IOS 7.1 simulator. You will get the "status" 0, which indicates the "UNSENT" request.In the console, the given error will be displayed. The same problem is seen even if no request is sent. Just create a new project and try it in the given environment, and you will get the same error regarding connection to the Analytics. I have attached a screen shot of the error .
I tried your test case and it runs just fine with 3.2.3 GA release. I added an alert to unload function and it gets called correctly. Your test is using HTTP and not HTTPS protocol so TLS or SSL should not be in play anyway. Note that your console error is unrelated to your test as it is a warning about sending app analytics to Appcelerator server that uses HTTPS.