Reference articles
https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832 (v=vs.85). aspx
1. Find the. appxmanifest file in the project and open it with txt text to find publisher.
2. Create the MakeCert folder in the C drive, from the directory C:\Program files (x86) \microsoft Sdks\windows\v7.1a\bin Copy Makecert.exe and Pvk2pfx.exe to the file.
3. Run cmd with admin to enter the MakeCert file.
4. Run C:\makecert>makecert-n cn=12b86ca8-5564-4383-b655-ce87b535555-r-H 0-eku " 1.3.6.1.5.5.7.3.3,1.3.6.1.4.1.311.10.3.13 "-E 09/20/2019-sv trr.pvk trr.cer
Note:-N is the add publisher, the front cn= must have otherwise will be reported Cryptcertstrtonamew failed = 0x80092023 (-2146885597) error.
5.C:\MAKECERT>PVK2PFX-PVK trr.pvk-pi password1-spc trr.cer-pfx trr.pfx-po Password1
How to build a PFX file for the publish Windows app