当前位置:网站首页>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应用包进行签名后,即可将你的应用包上传至微软应用商店。
边栏推荐
- [calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
- 数据的同步为每个站点创建触发器同步表
- About image reading and processing, etc
- 【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
- Analysis of rainwater connection
- Learning and Exploration - Seamless rotation map
- MySQL information schema learning (II) -- InnoDB table
- 思維導圖+源代碼+筆記+項目,字節跳動+京東+360+網易面試題整理
- Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting
- Classic 100 questions of algorithm interview, the latest career planning of Android programmers
猜你喜欢

思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理
In depth analysis, Android interview real problem analysis is popular all over the network

Hudi vs Delta vs Iceberg

手把手教你学会js的原型与原型链,猴子都能看懂的教程

(3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of

系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
Application of clock wheel in RPC
![[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer](/img/8c/afb90128e7a523bbee4c6c4166363f.png)
[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
![[玩转Linux] [Docker] MySQL安装和配置](/img/04/6253ef9fdf7d2242b42b4c7fb2c607.png)
[玩转Linux] [Docker] MySQL安装和配置

In simple terms, interview surprise Edition
随机推荐
Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
POJ3617 Best Cow Line 馋
时钟轮在 RPC 中的应用
js实现力扣71题简化路径
通俗的讲解,带你入门协程
JDBC details
Transformer model (pytorch code explanation)
思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理
Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
A popular explanation will help you get started
零基础入门PolarDB-X:搭建高可用系统并联动数据大屏
Phoenix Architecture 3 - transaction processing
[pytorch] yolov5 train your own data set
学习打卡web
A5000 vGPU显示模式切换
Tensorflow2.0 自定义训练的方式求解函数系数
转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
usb host 驱动 - UVC 掉包