Go to file
openharmony_ci ba986aee65
!27 仓库readme新增退休描述
Merge pull request !27 from zhanzeyi/master
2022-04-07 03:21:09 +00:00
.gitee add issue and pr template 2021-04-07 14:56:43 +08:00
certificates 删除文件 certificates/.keep 2021-05-22 15:49:12 +08:00
hapsigntool update new signtool 2021-05-20 11:44:03 +08:00
key 删除文件 key/.keep 2021-05-22 15:49:22 +08:00
profilesigntool 删除文件 profilesigntool/.keep 2021-05-22 15:49:33 +08:00
BUILD.gn 签名仓合并 2021-05-18 18:07:35 +08:00
LICENSE add LICENSE. 2021-03-19 11:45:15 +08:00
NOTICE update NOTICE. 2021-05-18 18:07:08 +08:00
OAT.xml huangjun42@huawei.com 2021-08-10 15:54:50 +08:00
README_zh.md add abandoned message 2022-04-07 10:03:09 +08:00
README.md add abandoned message 2022-04-07 10:03:09 +08:00

This project has been abandoned. Please visit the new project developtool_hapsigner

signcenter_tool

Introduction

During system building, OpenHarmony signs system applications to ensure their integrity and source reliability. This module provides a binary tool **hapsigntoolv2.jar** for signing OpenHarmony system applications.

Directory Structure

/prebuilts/signcenter
├── NOTICE                     # Open-source NOTICE file
├── hapsigntool                # Signing tool
│   └── hapsigntoolv2.jar     # OpenHarmony signing tool

Constraints

Running environment: JDK 8

Usage

The following is an example command for signing applications:

java -jar hapsigntoolv2.jar sign -mode localjks -privatekey "OpenHarmony Software Signature" -inputFile camera.hap -outputFile signed_camera.hap -signAlg SHA256withECDSA -keystore OpenHarmony.jks -keystorepasswd 123456 -keyaliaspasswd 123456 -profile camera_release.p7b -certpath OpenHarmony.cer -profileSigned 1

Descriptions of the fields in the preceding command:

hapsigntoolv2.jar: OpenHarmony signing tool
-mode: signing mode. The OpenHarmony signing key pair is stored in the local keystore file. The signing mode is localjks.
-privatekey: alias of the signing key pair
-inputFile: application to be signed
-outputFile: signed application
-signAlg: signing algorithm
-keystore: path of the keystore file
-keystorepasswd: password of the keystore file. The default password of OpenHarmony.jks is 123456.
-keyaliaspasswd: password of the signing key pair. The password of OpenHarmony Software Signature is 123456.
-profile: a file declaring the capabilities and permissions of the application
-certpath: path of the signing certificate
-profileSigned: whether the application profile is signed. Value 1 indicates that the profile is signed; value 0 indicates the opposite. The default value is 1.