当前位置:网站首页>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代码签名证书价格,单位代码签名证书价格,个人代码签名证书多少钱价格报价-沃通代码签名证书价格表!
边栏推荐
- Google Earth engine (GEE) -- 1975 dataset of Landsat global land survey
- 杰理之FM 模式单声道或立体声选择设置【篇】
- Use of promise in ES6
- Babbitt | metauniverse daily must read: is IP authorization the way to break the circle of NFT? What are the difficulties? How should holder choose the cooperation platform
- Django database (SQLite) basic introductory tutorial
- Redis入门完整教程:复制配置
- Qt蓝牙:QBluetoothDeviceInfo
- Convert widerperson dataset to Yolo format
- 杰理之在非蓝牙模式下,手机连接蓝牙不要跳回蓝牙模式处理方法【篇】
- Kubernetes源码分析(二)----资源Resource
猜你喜欢
随机推荐
Redis入門完整教程:問題定比特與優化
sshd[12282]: fatal: matching cipher is not supported: [email protected] [preauth]
Data analysis from the perspective of control theory
应用程序启动速度的优化
Redis getting started complete tutorial: replication topology
Andrews - multimedia programming
HDU ACM 4578 Transformation->段树-间隔的变化
[socket] ① overview of socket technology
2022年信息安全工程师考试大纲
Change your posture to do operation and maintenance! GOPs 2022 Shenzhen station highlights first!
惯导标定国内外研究现状小结(删减版)
MOS transistor realizes the automatic switching circuit of main and auxiliary power supply, with "zero" voltage drop and static current of 20ua
掘金量化:通过history方法获取数据,和新浪财经,雪球同用等比复权因子。不同于同花顺
Redis入门完整教程:复制拓扑
LeetCode 77:组合
Unity uses maskablegraphic to draw a line with an arrow
Remember the problem analysis of oom caused by a Jap query
A complete tutorial for getting started with redis: problem location and optimization
MySQL - common functions - string functions
【Socket】①Socket技术概述









