当前位置:网站首页>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应用包进行签名后,即可将你的应用包上传至微软应用商店。
边栏推荐
- redisson bug分析
- 数据的同步为每个站点创建触发器同步表
- LeetCode_格雷编码_中等_89.格雷编码
- 蓝桥杯 微生物增殖 C语言
- [calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
- Unbalance balance (dynamic programming, DP)
- Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
- 【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
- Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)
- Information System Project Manager - Chapter VIII project quality management
猜你喜欢

MySQL information Schema Learning (i) - - General table

今日直播 | “人玑协同 未来已来”2022弘玑生态伙伴大会蓄势待发

Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法

Using clip path to draw irregular graphics

思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理

信息系统项目管理师---第八章 项目质量管理

Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)

Zero foundation entry polardb-x: build a highly available system and link the big data screen

JDBC details

Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
随机推荐
Leetcode 30. Concatenate substrings of all words
【计算情与思】扫地僧、打字员、信息恐慌与奥本海默
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe
[translation] supply chain security project in toto moved to CNCF incubator
Microservice architecture debate between radical technologists vs Project conservatives
面试突击63:MySQL 中如何去重?
How to access localhost:8000 by mobile phone
IC设计流程中需要使用到的文件
Zero foundation entry polardb-x: build a highly available system and link the big data screen
理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)
[infrastructure] deployment and configuration of Flink / Flink CDC (MySQL / es)
VMware virtual machine cannot open the kernel device "\.\global\vmx86"
学习打卡web
Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting
Reflection and illegalaccessexception exception during application
腾讯Android面试必问,10年Android开发经验
How to customize animation avatars? These six free online cartoon avatar generators are exciting at a glance!
关于图像的读取及处理等
POJ3617 Best Cow Line 馋
Interpretation of Dagan paper