Uwp Visual Studio在appxmanifest文件的Identity Publisher字段中添加CN=

Uwp Visual Studio在appxmanifest文件的Identity Publisher字段中添加CN=,uwp,certificate,signature,sideloading,Uwp,Certificate,Signature,Sideloading,我目前正在为另一家公司开发UWP应用程序。我没有用于签署应用程序的真实证书,因此我尝试使用给定的发布者名称生成临时证书。发布者名称应如下所示,以便其他公司可以覆盖appxbundle签名: E=email@company.com,CN=公司名称,O=公司名称,L=城市,S=地区,C=FR 我尝试使用以下命令生成证书: "C:\Program Files (x86)\Windows Kits\10\bin\x64\makecert.exe" -r -n "E=email@company.com,

我目前正在为另一家公司开发UWP应用程序。我没有用于签署应用程序的真实证书,因此我尝试使用给定的发布者名称生成临时证书。发布者名称应如下所示,以便其他公司可以覆盖appxbundle签名:

E=email@company.com,CN=公司名称,O=公司名称,L=城市,S=地区,C=FR

我尝试使用以下命令生成证书:

"C:\Program Files (x86)\Windows Kits\10\bin\x64\makecert.exe" -r -n "E=email@company.com, CN=COMPANY NAME, O=COMPANY NAME, L=City, S=Region, C=FR" -sv mycert.pvk mycert.cer

"C:\Program Files (x86)\Windows Kits\10\bin\x64\pvk2pfx.exe"  –pvk infoliaison.pvk –spc mycert.cer –pfx mycert.pfx –po mycert

但VisualStudio2015拒绝导入它们。我检查过了,它们没有过期

如果我尝试使用我的发布者使用visual studio生成测试证书,appxbundle中的清单将修改如下:


有什么方法可以做到这一点吗?

我终于成功地创建了一个有效的证书,在具有管理员权限的powershell中使用以下命令与Visual Studio协作

New-SelfSignedCertificate -Type Custom -Subject "E=email@company.com, CN=COMPANY NAME, O=COMPANY NAME, L=City, S=Region, C=FR" -KeyUsage DigitalSignature -FriendlyName myproject -CertStoreLocation "Cert:\LocalMachine\My" -TextExtension '2.5.29.37={text}1.3.6.1.5.5.7.3.3','2.5.29.19={critical}{text}ca=0'

然后,我将证书导出到一个pfx文件中,并将其用于对我的应用程序进行签名

请参考类似的问题。我成功地使用新的SelfSignedCertificate创建了一个证书,并且它被Visual Studio接受(缺少基本约束)。但是,它在我的出版商名称前添加了“CN=”。。。
New-SelfSignedCertificate -Type Custom -Subject "E=email@company.com, CN=COMPANY NAME, O=COMPANY NAME, L=City, S=Region, C=FR" -KeyUsage DigitalSignature -FriendlyName myproject -CertStoreLocation "Cert:\LocalMachine\My" -TextExtension '2.5.29.37={text}1.3.6.1.5.5.7.3.3','2.5.29.19={critical}{text}ca=0'