当前位置:网站首页>Appx代碼簽名指南
Appx代碼簽名指南
2022-07-07 10:13:00 【沃通WoTrus】
一、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應用包進行簽名後,即可將你的應用包上傳至微軟應用商店。
边栏推荐
- This article explains the complex relationship between MCU, arm, muc, DSP, FPGA and embedded system
- Analyze Android event distribution mechanism according to popular interview questions (II) -- event conflict analysis and handling
- 每周推荐短视频:L2级有哪些我们日常中经常会用到的功能?
- conda离线创建虚拟环境
- 2020ccpc Weihai J - Steins; Game (SG function, linear basis)
- 基于gis三维可视化技术的智慧城市建设
- Performance optimization record of the company's product "yunzhujia"
- SolidWorks工程图中添加中心线和中心符号线的办法
- Embedded background - chip
- STM32 Basics - memory mapping
猜你喜欢

Programming features of ISP, IAP, ICP, JTAG and SWD

AI moves from perception to intelligent cognition

ES类和对象、原型

官媒关注!国内数字藏品平台百强榜发布,行业加速合规健康发展

Chris Lattner, père de llvm: Pourquoi reconstruire le logiciel d'infrastructure ai

Programming features of ISP, IAP, ICP, JTAG and SWD

Future development blueprint of agriculture and animal husbandry -- vertical agriculture + artificial meat

Web3.0 series distributed storage IPFs

Wallys/IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL CONCURRENT

高数_第1章空间解析几何与向量代数_向量的数量积
随机推荐
Bean 作⽤域和⽣命周期
Parameter sniffing (1/2)
STM32 product introduction
Embedded background - chip
ArcGIS operation: converting DWG data to SHP data
Official media attention! The list of top 100 domestic digital collection platforms was released, and the industry accelerated the healthy development of compliance
Why are social portals rarely provided in real estate o2o applications?
ES6中的函数进阶学习
Analyze Android event distribution mechanism according to popular interview questions (I)
Or in SQL, what scenarios will lead to full table scanning
A wave of open source notebooks is coming
Web3.0 series distributed storage IPFs
【学习笔记-李宏毅】GAN(生成对抗网络)全系列(一)
Enterprise practice | construction of banking operation and maintenance index system under complex business relations
企业实战|复杂业务关系下的银行业运维指标体系建设
Sword finger offer II 107 Distance in matrix
Basic chapter: take you through notes
Win10 installation vs2015
为什么安装mysql时starting service报错?(操作系统-windows)
ES6中的函數進階學習