Folks,
I am hoping someone can point me in the correct direction as I am having a great deal of trouble signing my app so i can test is on my phone properly.
Having exhausted google and all of the forums and articles I could find in the past week I have decide to post a request instead.
Please find below the steps I tried (well current set anyway), can anyone point out what I might be doing wrong?
Many thanks in advance.
Corey
P.S. I know this feels like a report of the many threads already in this forum but I assure you I have tried the "answers" contained in them and still been left wanting
1) Create a keystore
keytool -genkey -alias surame -keypass <password> -keyalg RSA -keysize 1024 -dname "CN=surame.net,O=surame.net,C=MY,E=corey.scott@surame.net" -keystore surame_keystore -storepass <password>
2) Create a certificate request
keytool -certreq -v -alias surame -file csr-for-surame.pem -keystore surame_keystore
3) Submitted to my CA (Ive tried a few of the trial certs, using verisign as an example here)
4) Received response and saved as surame.net-signed-cert.pem
5) Imported CA's root certs into my keystore
keytool -import -v -trustcacerts -alias verisign-demo-root -file verisign-demo-cert-root.pem -keystore surame_keystore
6) Imported the CA's intermediate cert(s)
keytool -import -v -trustcacerts -alias verisign-demo-intermedia -file verisign-demo-cert-intermediate.pem -keystore surame_keystore
7) Imported my cert from the CA
keytool -import -v -alias surame -file surame.net-signed-cert.pem -keystore surame_keystore
8) Build my JAR and jad (using J2ME polish but not using its signing capabilities)
9) Signed the jar
jarsigner -keystore surame_keystore.jks -storepass <password> dist\Nokia\N73\Surame-Mobile-en.jar surame
10) Added cert and sign to JAD
java -jar C:\WTK2.5.2\bin\JadTool.jar -addcert -keystore surame_keystore.jks -alias surame -storepass <password> -inputjad dist\Nokia\N73\Surame-Mobile-en.jad -outputjad dist\Nokia\N73\Surame-Mobile-en.jad
java -jar C:\WTK2.5.2\bin\JadTool.jar -addjarsig -keystore surame_keystore.jks -alias surame -jarfile dist\Nokia\N73\Surame-Mobile-en.jar -storepass <password> -keypass <password> -inputjad dist\Nokia\N73\Surame-Mobile-en.jad -outputjad dist\Nokia\N73\Surame-Mobile-en.jad
11) Updated the JAD's "MIDlet-Jar-Size: " line to the new JAR size
12) Installed the CA certs and my cert on my N73 using OTA
13) Installed my jar/jad on my N73
-Fails with "Certificate Error - Contact the application supplier"
(Notes: I have tried modifying the cert perms to all the different combinations, sensible and not.)

Reply With Quote


