当前位置:网站首页>Appx代码签名指南
Appx代码签名指南
2022-07-06 11:50:00 【华为云】
一、APPX是什么文件格式?
appx实际上就是安装文件压缩包,将我们平时常见的一些安装文件打包起来,其中包含DLL文件库、CAT数字签名文件、多个XML文件信息文件等,是一个准备好分配和安装的应用程序包。
appxs首次在Windows 8中引入,为了保护系统的安全,Windows 10系统使用Windows UWP平台认证机制管理.Appx应用的运行。所有从Windows应用商店下载的.Appx应用均可直接顺利运行,而对于尚未取得该认证的来历不明的.Appx应用,安装时会出现“安装失败”的提示。上传至微软应用商店前,需要使用有效的代码签名证书对Appx文件进行数字签名。
二、如何进行appx数字签名?
1、签名准备
应用包
若要了解手动创建应用包的详细信息,请参阅使用 MakeAppx.exe 工具创建应用包。
有效的签名证书
申请有效的代码签名证书,请查看沃通代码签名证书。
签名工具
下载安装SignTool签名工具
2、数字签名
举例:
查看我的证书使用者信息如下:

Xml的publisher写法如下:

签名:
Cmd进入makeappx.exe目录
第一步:makeappx.exe pack /v /h SHA256 /d C:\Users\***\Desktop\appx /p 123.appx(/d后面是xml的目录,/p 后面是appx的目录,没写的就会在makeappx.exe的目录)
第二步:signtool sign /v /a /sha1 证书指纹值 /fd sha256 123.appx
3、要点总结
第一步/h sha256指定的算法和第二步/fd sha256要一致;注意xml的写法,不然会报错。
注意:如果公司名称中带有,时,Publisher里面需要用";将公司名称引用起来,举例CN=WoTrus CACo., Ltd.,则在Publisher里面要变成CN=";WoTrus CACo., Ltd.";
按上述步骤,到沃通官网申请使用有效的代码签名证书对Appx应用包进行签名后,即可将你的应用包上传至微软应用商店。
边栏推荐
- 今日直播 | “人玑协同 未来已来”2022弘玑生态伙伴大会蓄势待发
- 信息系统项目管理师---第八章 项目质量管理
- Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法
- Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
- How to customize animation avatars? These six free online cartoon avatar generators are exciting at a glance!
- zabbix 代理服务器 与 zabbix-snmp 监控
- swagger2报错Illegal DefaultValue null for parameter type integer
- Druid database connection pool details
- Dom 操作
- 深入浅出,面试突击版
猜你喜欢

Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe

力扣101题:对称二叉树
![[infrastructure] deployment and configuration of Flink / Flink CDC (MySQL / es)](/img/1e/b270a81c8457f1eae34f55c004a01a.png)
[infrastructure] deployment and configuration of Flink / Flink CDC (MySQL / es)
Classic 100 questions of algorithm interview, the latest career planning of Android programmers

企业精益管理体系介绍

Learning and Exploration - Seamless rotation map

Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go

Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand

Reflection and illegalaccessexception exception during application

Transformer model (pytorch code explanation)
随机推荐
leetcode先刷_Maximum Subarray
Analysis of rainwater connection
数据的同步为每个站点创建触发器同步表
系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
凤凰架构3——事务处理
腾讯T3手把手教你,真的太香了
CF960G - Bandit Blues(第一类斯特林数+OGF)
C # use Marshall to manually create unmanaged memory in the heap and use
思維導圖+源代碼+筆記+項目,字節跳動+京東+360+網易面試題整理
Mysql Information Schema 学习(一)--通用表
Interview assault 63: how to remove duplication in MySQL?
Lick the dog until the last one has nothing (simple DP)
Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法
Mysql Information Schema 学习(二)--Innodb表
凤凰架构2——访问远程服务
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
Yyds dry goods inventory leetcode question set 751 - 760
[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
After solving 2961 user feedback, I made such a change