{ "id": "63116", "key": "TIMOB-2484", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2012-04-30T11:20:47.000+0000", "created": "2011-04-15T03:20:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:40:51.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

If I put a port 443 or a different one the connection does not\r\nwork

{html}", "attachment": [], "flagged": false, "summary": "iOS: Httpclient ssl problem without different port", "creator": { "name": "micky", "key": "micky", "displayName": "Micky", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "micky", "key": "micky", "displayName": "Micky", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128602", "author": { "name": "jeroenk.", "key": "jeroenk.", "displayName": "Jeroen K.", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I can confirm that this doesn't work.

\n
\nvar xhr = Titanium.Network.createHTTPClient();\nxhr.open('POST', 'https://someurl:2343');\n
\n

throws an xhr.onerror:

\n
\n{\nerror = \"Error Domain=ASIHTTPRequestErrorDomain Code=1 \\\"A connection failure occurred\\\" UserInfo=0x6c21d80 {NSUnderlyingError=0x6c1ac70 \\\"The operation couldn\\U2019t be completed. (kCFErrorDomainCFNetwork error 2.)\\\", NSLocalizedDescription=A connection failure occurred}\";\nsource = \"[object TiNetworkClient]\";\ntype = error;\n}\n
{html}", "updateAuthor": { "name": "jeroenk.", "key": "jeroenk.", "displayName": "Jeroen K.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:20:59.000+0000", "updated": "2011-04-15T03:20:59.000+0000" }, { "id": "133338", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We have a helpdesk ticket (TTR-59568-869) that is having a similar 443 problem that is probably also caused by this bug. Since they are using a local server, I have no way to test it myself, but the error is the following:\n{code}\n[ERROR] webserviceUtil.onerror: Error Domain=ASIHTTPRequestErrorDomain Code=1 \"A connection failure occurred: SSL problem (possibly a bad/expired/self-signed certificate)\" UserInfo=0x6d20150 {NSUnderlyingError=0x6d1fe00 \"The operation couldn’t be completed. (OSStatus error -9807.)\", NSLocalizedDescription=A connection failure occurred: SSL problem (possibly a bad/expired/self-signed certificate)}\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-05-10T04:16:03.000+0000", "updated": "2011-05-10T05:17:46.000+0000" }, { "id": "190330", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We require that all SSL bugs reported with HTTPClient first use TLS versioning to check and see if that resolves the issue. Please see the documentation for [Titanium.Network.TLSVersion|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Network.HTTPClient.tlsVersion-property.html].", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T10:07:20.000+0000", "updated": "2012-04-09T10:07:20.000+0000" }, { "id": "193161", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We did not ever receive the following, which are required to resolve the ticket:\r\n\r\n* A complete working sample demonstrating the bug\r\n* Proof that the issue is not solved by setting Ti.Network.HTTPClient.tlsVersion to a specific value\r\n\r\nMarking this ticket as NEEDSMOREINFO as a result. If the requested information is supplied, we can reopen the ticket.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T11:20:47.000+0000", "updated": "2012-04-30T11:20:47.000+0000" }, { "id": "412920", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the information that was requested was never provided.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:40:51.000+0000", "updated": "2017-03-16T20:40:51.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }