Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24199] Windows 10: Unable to package app for winstore

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNeeds more info
Resolution Date2018-07-26T04:02:36.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterJebun Naher
AssigneeKota Iguchi
Created2016-12-06T11:38:58.000+0000
Updated2018-07-26T04:02:36.000+0000

Description

*Issue description:* I get following error when I run the CLI command to generate a certificate for winstore: *[ERROR]* Failed to create certificate (code 4294967295) *CLI command:* appc run -p windows -T dist-winstore -O dist *Reproduction:* - Create an app and run the CLI command to generate a certificate: appc run -p windows -T dist-winstore -O dist *Actual:* [ERROR] Failed to create certificate (code 4294967295) *Expected*: Successfully create a certificate.

Attachments

FileDateSize
windowsinfojson.txt2016-12-22T11:02:29.000+000034273

Comments

  1. Kota Iguchi 2016-12-21

    Could you provide output from appc ti info -p windows -o json for more environment information?
  2. Jebun Naher 2016-12-22

    [~kota], Please find the attachment.
  3. Kota Iguchi 2016-12-28

    [~jnaher] Could you help with following directions to diagnose the issue? Go to C:\ProgramData\Titanium\mobilesdk\win32\5.5.1.GA\node_modules\windowslib\lib\ and open certs.js in your text editor 1. Update LINE 102:
       	var ex = new Error(__('Failed to create certificate (code %s)', code));
       
    to
       	var ex = new Error(__('102 - Failed to create certificate (code %s) %s %s', code, out, err));
       
    2. Update LINE 226:
       	var ex = new Error(__('Failed to create certificate (code %s)', code));
       
    to
       	var ex = new Error(__('226 - Failed to create certificate (code %s) %s %s', code, out, err));
       
    3. Then try appc run -p windows -T dist-winstore -O dist again, and see what's printed. Thanks in advance!
  4. Kota Iguchi 2017-01-19

    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? https://msdn.microsoft.com/en-us/library/bfsktky3(VS.100).aspx makecert will be located in following paths: * C:\Program Files (x86)\Windows Kits\8.1\bin\x64 * C:\Program Files (x86)\Windows Kits\10\bin\x64
  5. Kota Iguchi 2017-01-23

    It is the combination of makecert and pvk2pfx. I found that Microsoft provides good documentation about it. * [How to: Create Your Own Test Certificate](https://msdn.microsoft.com/en-us/library/ff699202.aspx) * [How to create an app package signing certificate](https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832(v=vs.85).aspx)
  6. Kota Iguchi 2018-07-26

    Closing this for now because this was not reproducible. Feel free to create new ticket if this is still the case.

JSON Source