Dec 19, 2011

Steps to sign your MIDlet

When you decide to obtain your own certificate to sign your code, you have to make the following steps:

Step 1. Create a keystore:
keytool -genkey -keyalg rsa -keystore keystore -alias alias
Step 2. Generate a Certificate Signing Request (CSR) for enrollment process:
keytool -certreq -file certreq.csr -keystore keystore -alias alias
Step 3: Import digital ID (certificate) into the keystore:
keytool -import -trustcacerts -keystore keystore -alias alias -file cert.cer
Once you have the certificate in the keystore, register it in your IDE in order to sign your projects. You may also perform signing manually:
jadtool -addcert -alias alias [ -keystore keystore ] [ -storepass password ] -inputjad inputJadFile -outputjad outputJadFile
jadtool -addjarsig [ -jarfile jarFile ] -alias alias [ -keystore keystore ] -storepass password -keypass password -inputjad inputJadFile -outputjad outputJadFile

Notice, you may also sign your MIDlet free of charge here.

0 comments:

Post a Comment