# internal-testing **Repository Path**: andrewzj/internal-testing ## Basic Information - **Project Name**: internal-testing - **Description**: 内部测试验签工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2025-05-30 - **Last Updated**: 2025-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # internal-testing #### 介绍 内部测试验签工具 #### 安装教程 1. 低版本的JDK会限制加密强度并产生报错,需要升级JDK到1.8.0.3*或更高版本(不包括java11的版本)获取链接: https://www.oracle.com/java/technologies/downloads/ 2. 工具默认使用SHA256withECDSA签名 3. 工具包的使用: 执行manifest-sign.bat 4. 查询工具版本:--version 或者 -operation version 5. 查询工具使用命令:--help 或者 -h 或者 -operation help #### 生成签名 1. operation为操作类型,生成签名时为sign 2. mode为获取签名的模式,本地为localjks,远端为remote 3. inputFile为需要生成签名的xxx.json5文件路径 4. outputFile为输出的json5文件路径 5. keystore为p12秘钥文件路径,对应Store file(*.p12) 6. keystorepasswd为秘钥文件密码,对应Store password 7. keyaliaspasswd为私钥的密码,对应Key password 8. privatekey为私钥的别名,对应Key alias 9. 使用样例: -operation sign -mode localjks -inputFile C:\xxx\adhoc.json5 -outputFile C:\xxx\adhocnew.json5 -keystore C:\xxx\adhoc.p12 -keystorepasswd Huaxxx -keyaliaspasswd Huaxxx -privatekey huawei ![输入图片说明](image.png) #### 验证签名 1. operation为操作类型,验证签名时为verify 2. inputFile为需要生成签名的xxx.json5文件路径 3. keystore为p12秘钥文件路径,对应Store file(*.p12) 4. keystorepasswd为秘钥文件密码,对应Store password 5. 使用样例: -operation verify -inputFile C:\xxx\adhocnew.json5 -keystore C:\xxx\adhoc.p12 -keystorepasswd Huaxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)