当前位置:网站首页>Appx代码签名指南
Appx代码签名指南
2022-07-06 19:47:00 【lavin1614】
一、APPX是什么文件格式?
appx实际上就是安装文件压缩包,将我们平时常见的一些安装文件打包起来,其中包含DLL文件库、CAT数字签名文件、多个XML文件信息文件等,是一个准备好分配和安装的应用程序包。
appxs首次在Windows 8中引入,为了保护系统的安全,Windows 10系统使用Windows UWP平台认证机制管理.Appx应用的运行。所有从Windows应用商店下载的.Appx应用均可直接顺利运行,而对于尚未取得该认证的来历不明的.Appx应用,安装时会出现“安装失败”的提示。上传至微软应用商店前,需要使用有效的代码签名证书对Appx文件进行数字签名。
二、如何进行appx数字签名?
1、签名准备
应用包
若要了解手动创建应用包的详细信息,请参阅使用 MakeAppx.exe 工具创建应用包[1]。
有效的签名证书
申请有效的代码签名证书,请查看沃通代码签名证书[2]。
签名工具
下载安装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应用包进行签名后,即可将你的应用包上传至微软应用商店。
参考
- ^MakeAppx.exe 工具创建应用包 使用 MakeAppx.exe 工具创建应用包 - MSIX | Microsoft Docs
- ^代码签名证书 代码签名证书价格表,EV代码签名证书价格,单位代码签名证书价格,个人代码签名证书多少钱价格报价-沃通代码签名证书价格表!
边栏推荐
- input_delay
- Error: could not find a version that satisfies the requirement xxxxx (from versions: none) solutions
- Remember the problem analysis of oom caused by a Jap query
- 首届“量子计算+金融科技应用”研讨会在京成功举办
- Cloud Mail . NET Edition
- 简单冒泡排序
- 【基于 RT-Thread Studio的CPK-RA6M4 开发板环境搭建】
- Electrical engineering and automation
- Code debugging core step memory
- Oauth2协议中如何对accessToken进行校验
猜你喜欢
密码学系列之:在线证书状态协议OCSP详解
MOS transistor realizes the automatic switching circuit of main and auxiliary power supply, with "zero" voltage drop and static current of 20ua
How to verify accesstoken in oauth2 protocol
上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
Utilisation de la promesse dans es6
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
Oauth2协议中如何对accessToken进行校验
Nuggets quantification: obtain data through the history method, and use the same proportional compound weight factor as Sina Finance and snowball. Different from flush
leetcode-02(链表题)
The whole process of knowledge map construction
随机推荐
Redis入门完整教程:复制原理
PSINS中19维组合导航模块sinsgps详解(时间同步部分)
杰理之RTC 时钟开发【篇】
How does C language (string) delete a specified character in a string?
Error: could not find a version that satisfies the requirement xxxxx (from versions: none) solutions
MySQL - common functions - string functions
Le tube MOS réalise le circuit de commutation automatique de l'alimentation principale et de l'alimentation auxiliaire, et la chute de tension "zéro", courant statique 20ua
Household appliance industry under the "retail is king": what is the industry consensus?
HDU ACM 4578 Transformation->段树-间隔的变化
杰理之关于 DAC 输出功率问题【篇】
换个姿势做运维!GOPS 2022 · 深圳站精彩内容抢先看!
知识图谱构建全流程
SQL Tuning Advisor一个错误ORA-00600: internal error code, arguments: [kesqsMakeBindValue:obj]
INS/GPS组合导航类型简介
PSINS中19维组合导航模块sinsgps详解(初始赋值部分)
Redis introduction complete tutorial: replication principle
杰理之开启经典蓝牙 HID 手机的显示图标为键盘设置【篇】
Starting from 1.5, build a micro Service Framework -- log tracking traceid
What are the characteristics of the operation and maintenance management system
New benchmark! Intelligent social governance