{ "id": "174687", "key": "AC-6481", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2020-02-05T08:07:05.000+0000", "created": "2020-02-04T09:44:21.000+0000", "labels": [], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2020-02-05T08:07:05.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": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" } ], "description": "Hi, \r\n\r\nI am able to access https via Self Signed Certificate using Ti.Network.createHTTPClient.\r\n\r\nFind below code:\r\n{code:js}\r\n\t\t var client = Ti.Network.createHTTPClient({\r\n\t\t\t\tonload: function(e)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t},\r\n\t\t\t\t\r\n\t\t\t\tonerror: function(e)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\ttimeout: 60000\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tvar tokenFormData = {object: \"object\"};\r\n\t\t\t\r\n\t\t\tclient.open(\"POST\", url);\r\n\t\t\tclient.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\");\r\n\t\t\t\r\n\t\t\tclient.send(tokenFormData); \r\n{code}\r\n\r\nAs per the documentation, Self-signed should not able to use \"https\" and it should \"Certificate for this server is invalid\"\r\nBut I am able to use a Self Signed Certificate in Android.\r\n\r\nAndroid OS: 9\r\nSDK: 8.2.1.GA\r\n\r\nPlease suggest ", "attachment": [], "flagged": false, "summary": "Able to access https via Self Signed Certificate using Ti.Network.createHTTPClient", "creator": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "454026", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Probably due to testing/dev mode, where validation is not done properly (as expected). Can you enable the property and try again?\r\n\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network.HTTPClient-property-validatesSecureCertificate\r\n\r\n", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-02-04T13:55:14.000+0000", "updated": "2020-02-04T13:55:14.000+0000" }, { "id": "454039", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Now, I am able to use this property and its is working as expected.\r\nBut this is the usual way to use this property every time.Can you please confirm. ", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-05T04:46:13.000+0000", "updated": "2020-02-05T04:46:13.000+0000" }, { "id": "454046", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is expected behavior, yes. But you don't need to set the property as for production builds that property is set by default, as also explained in the documentation.\r\n\r\nI'll close the ticket if you have any further questions regarding using the SDK feel free to ask the community as well, you might get responses even faster. You can find the community on https://tislack.org ", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-02-05T08:06:49.000+0000", "updated": "2020-02-05T08:06:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }