当前位置:网站首页>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应用包进行签名后,即可将你的应用包上传至微软应用商店。
边栏推荐
- POJ 3207 Ikki's Story IV – Panda's Trick (2-SAT)
- Is not a drawable (color or path): the vector graph downloaded externally cannot be called when it is put into mipmap, and the calling error program crashes
- VMware virtual machine cannot open the kernel device "\.\global\vmx86"
- Phoenix Architecture 3 - transaction processing
- Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
- short i =1; I=i+1 and short i=1; Difference of i+=1
- [玩转Linux] [Docker] MySQL安装和配置
- logstash高速入口
- Cf960g - bandit Blues (type I Stirling number +ogf)
- 部门树递归实现
猜你喜欢
Reflection and illegalaccessexception exception during application
Configuration and simple usage of the EXE backdoor generation tool quasar
在解决了 2961 个用户反馈后,我做出了这样的改变...
学习探索-无缝轮播图
深入分析,Android面试真题解析火爆全网
Carte de réflexion + code source + notes + projet, saut d'octets + jd + 360 + tri des questions d'entrevue Netease
Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting
Introduction to enterprise lean management system
Selenium advanced operations
JDBC details
随机推荐
MySql必知必会学习
CPU负载很低,loadavg很高处理方法
Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
VMware virtual machine cannot open the kernel device "\.\global\vmx86"
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
350. Intersection of two arrays II
学习探索-函数防抖
LeetCode_ Double pointer_ Medium_ 61. rotating linked list
【翻译】供应链安全项目in-toto移至CNCF孵化器
利用 clip-path 绘制不规则的图形
350. 两个数组的交集 II
Social recruitment interview experience, 2022 latest Android high-frequency selected interview questions sharing
企业精益管理体系介绍
凤凰架构2——访问远程服务
Zero foundation entry polardb-x: build a highly available system and link the big data screen
学习探索-无缝轮播图
蓝桥杯 微生物增殖 C语言
short i =1; I=i+1 and short i=1; Difference of i+=1
如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
Introduction to enterprise lean management system