[TIMOB-24199] Windows 10: Unable to package app for winstore
| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Needs more info |
| Resolution Date | 2018-07-26T04:02:36.000+0000 |
| Affected Version/s | Release 6.0.0 |
| Fix Version/s | n/a |
| Components | Windows |
| Labels | n/a |
| Reporter | Jebun Naher |
| Assignee | Kota Iguchi |
| Created | 2016-12-06T11:38:58.000+0000 |
| Updated | 2018-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
Could you provide output from
appc ti info -p windows -o jsonfor more environment information?[~kota], Please find the attachment.
[~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 opencerts.jsin your text editor 1. Update LINE 102:tovar ex = new Error(__('Failed to create certificate (code %s)', code));2. Update LINE 226:var ex = new Error(__('102 - Failed to create certificate (code %s) %s %s', code, out, err));tovar ex = new Error(__('Failed to create certificate (code %s)', code));3. Then tryvar ex = new Error(__('226 - Failed to create certificate (code %s) %s %s', code, out, err));appc run -p windows -T dist-winstore -O distagain, and see what's printed. Thanks in advance!I'm still unable to reproduce this. It looks like certification command is failing for some reason. Could you manually create certification using
makecertcommand by following instructions? https://msdn.microsoft.com/en-us/library/bfsktky3(VS.100).aspxmakecertwill be located in following paths: * C:\Program Files (x86)\Windows Kits\8.1\bin\x64 * C:\Program Files (x86)\Windows Kits\10\bin\x64It is the combination of
makecertandpvk2pfx. 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)Closing this for now because this was not reproducible. Feel free to create new ticket if this is still the case.