{ "id": "164840", "key": "TIMOB-24199", "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": "2018-07-26T04:02:36.000+0000", "created": "2016-12-06T11:38:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-07-26T04:02:36.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "*Issue description:*\r\nI get following error when I run the CLI command to generate a certificate for winstore:\r\n*[ERROR]* Failed to create certificate (code 4294967295)\r\n*CLI command:* appc run -p windows -T dist-winstore -O dist\r\n\r\n*Reproduction:*\r\n- Create an app and run the CLI command to generate a certificate: appc run -p windows -T dist-winstore -O dist\r\n\r\n*Actual:* [ERROR] Failed to create certificate (code 4294967295)\r\n*Expected*: Successfully create a certificate.", "attachment": [ { "id": "61138", "filename": "windowsinfojson.txt", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-22T11:02:29.000+0000", "size": 34273, "mimeType": "text/plain" } ], "flagged": false, "summary": "Windows 10: Unable to package app for winstore", "creator": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "environment": "Operating System \r\nName = Microsoft Windows 10 Enterprise \r\nVersion = 10.0.10586 \r\nArchitecture = 32bit \r\n# CPUs = 4 \r\nMemory = 7.9GB\r\n\r\nNode.js \r\nNode.js Version = 4.2.6 \r\nnpm Version = 2.14.12\r\n\r\nAppcelerator CLI \r\nInstaller = 4.2.8 \r\nCore Package = 6.0.0\r\n\r\nTitanium CLI \r\nCLI Version = 5.0.10 \r\nnode-appc Version = 0.2.31\r\n\r\nTitanium SDKs \r\n6.0.0.GA \r\nVersion = 6.0.0 \r\nnode-appc Version = 0.2.39", "comment": { "comments": [ { "id": "403719", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Could you provide output from {{appc ti info -p windows -o json}} for more environment information?", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-12-21T06:57:40.000+0000", "updated": "2016-12-21T06:57:40.000+0000" }, { "id": "403794", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "[~kota], Please find the attachment.", "updateAuthor": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-22T11:04:44.000+0000", "updated": "2016-12-22T11:04:44.000+0000" }, { "id": "403886", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jnaher] Could you help with following directions to diagnose the issue?\r\n\r\nGo to {{C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.5.1.GA\\node_modules\\windowslib\\lib\\}} and open {{certs.js}} in your text editor\r\n\r\n1. Update LINE 102:\r\n\r\n{code}\r\n\tvar ex = new Error(__('Failed to create certificate (code %s)', code));\r\n{code}\r\n\r\nto\r\n\r\n{code}\r\n\tvar ex = new Error(__('102 - Failed to create certificate (code %s) %s %s', code, out, err));\r\n{code}\r\n\r\n2. Update LINE 226:\r\n\r\n{code}\r\n\tvar ex = new Error(__('Failed to create certificate (code %s)', code));\r\n{code}\r\n\r\nto\r\n\r\n{code}\r\n\tvar ex = new Error(__('226 - Failed to create certificate (code %s) %s %s', code, out, err));\r\n{code}\r\n\r\n3. Then try {{appc run -p windows -T dist-winstore -O dist}} again, and see what's printed. \r\n\r\nThanks in advance!", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-12-28T01:49:47.000+0000", "updated": "2016-12-28T01:49:47.000+0000" }, { "id": "404831", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I'm still unable to reproduce this. It looks like certification command is failing for some reason. Could you manually create certification using {{makecert}} command by following instructions?\r\n \r\nhttps://msdn.microsoft.com/en-us/library/bfsktky3(VS.100).aspx\r\n\r\n{{makecert}} will be located in following paths:\r\n\r\n* C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64\r\n* C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-19T01:54:58.000+0000", "updated": "2017-01-19T01:54:58.000+0000" }, { "id": "405055", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "It is the combination of {{makecert}} and {{pvk2pfx}}. I found that Microsoft provides good documentation about it.\r\n\r\n* [How to: Create Your Own Test Certificate|https://msdn.microsoft.com/en-us/library/ff699202.aspx]\r\n* [How to create an app package signing certificate|https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832(v=vs.85).aspx]\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-23T11:46:43.000+0000", "updated": "2017-01-23T11:46:43.000+0000" }, { "id": "439488", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this for now because this was not reproducible. Feel free to create new ticket if this is still the case.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-07-26T04:02:36.000+0000", "updated": "2018-07-26T04:02:36.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }