当前位置:网站首页>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應用包進行簽名後,即可將你的應用包上傳至微軟應用商店。
边栏推荐
- Parameter sniffing (1/2)
- The Himalaya web version will pop up after each pause. It is recommended to download the client solution
- Memory ==c language 1
- Pit encountered by vs2015 under win7 (successful)
- Google colab loads Google drive (Google drive is used in Google colab)
- 一大波开源小抄来袭
- The combination of over clause and aggregate function in SQL Server
- Applet popup half angle mask layer
- ORM -- query type, association query
- Apprentissage avancé des fonctions en es6
猜你喜欢

arcgis操作:dwg数据转为shp数据

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

LLVM之父Chris Lattner:為什麼我們要重建AI基礎設施軟件

LLVM之父Chris Lattner:为什么我们要重建AI基础设施软件

Postman interface test VI

AI moves from perception to intelligent cognition

Postman interface test VII

China's first electronic audio category "Yamano electronic audio" digital collection is on sale!

The physical meaning of imaginary number J

ORM--查询类型,关联查询
随机推荐
Download Text, pictures and ab packages used by unitywebrequest Foundation
AI moves from perception to intelligent cognition
【ORM框架】
单片机(MCU)最强科普(万字总结,值得收藏)
大整数类实现阶乘
Win10安装VS2015
一文讲解单片机、ARM、MUC、DSP、FPGA、嵌入式错综复杂的关系
Future development blueprint of agriculture and animal husbandry -- vertical agriculture + artificial meat
学习记录——高精度加法和乘法
Basic chapter: take you through notes
SQLyog数据库怎么取消自动保存更改
一大波开源小抄来袭
Guys, how can mysql-cdc convert the upsert message to append only
CONDA creates virtual environment offline
Weekly recommended short videos: what are the functions of L2 that we often use in daily life?
The applet realizes multi-level page switching back and forth, and supports sliding and clicking operations
Parameter sniffing (2/2)
Postman interface test VI
The story of Plato and his three disciples: how to find happiness? How to find the ideal partner?
Some test points about coupon test