Midlet代码签名过程

来源:互联网 发布:淘宝活动2017 编辑:程序博客网 时间:2024/05/24 01:43

1 Create a keystore.

        keytool -genkey -keyalg RSA -keystore <keystore_file> -alias <alias>

2.Generate a CSR.

        keytool -certreq -file <csr_file> -keystore <keystore_file> -alias <alias>

3. Copy the contents of the CSR file and paste them directly into the VeriSign enrollment form,submit.

4. Versign will send back a confirmation e-mail with Sun Java Code Signing Digital ID attached.Copy the Digital ID and save into a text file which will be refered as <cert_file> below.

6.Import certificate

        keytool -import -trustcacerts -keystore <keystore_file> -alias <alias> -file <cert_file>

7.Sign the jad file

        java -jar JadTool.jar addjarsig

        java -jar JadTool.jar addcerts  

*note:do not sign the jar file