×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Question Signed jar -> invalid application

    Hi there!

    I have written a mobile application in java. It uses file-operations, so i had to sign it with a certificate (to do not disturb the user with security messages). The application works fine without signing, but the signed jar says "Invalid application" when i run it.

    I have bought a certificate from thawte, so it have to be good (and i got help from online chat support to install it, so it is good). The mobile (Nokia 3110 Classic) includes the thawte root-certificate.

    Can anyone tell me what is the problem?

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Signed jar -> invalid application

    Hi fgi! Welcome to Nokia Developer Discusssion Boards!!

    How are you installing the MIDlet to the device? Over the Air or with Local Connectivity/Nokia PC Suite.

    Regards
    Gopal

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: Signed jar -> invalid application

    I have sent it directly by Bluetooth, and with Nokia PC Suite (Bluetooth connect)

  4. #4
    Registered User
    Join Date
    May 2005
    Posts
    76

    Re: Signed jar -> invalid application

    Did you put all three certificates (yours, Thawte Code Signing CA and Thawte Premium Server CA) to the JAD?
    Last edited by hnipak; 2008-01-24 at 12:53.

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: Signed jar -> invalid application

    I add to my application only the certificate that i get back from thawte, like:
    jarsigner -keystore [place of keystore] [place of jar file] [alias]

  6. #6
    Registered User
    Join Date
    May 2005
    Posts
    76

    Re: Signed jar -> invalid application

    I do not think that is enough - the intermediate CA cert is missing in the certification path.

    And my experience is that root CA should be present in the JAD too, on some devices it is ok to omit it, but others will no accept such application as valid.
    I do not remember concrete brand/models by heart, sorry, it just appears it is safer to put the root CA cert into JAD too.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    Please have a look at these instructions which include a lot of links and solutions for common pitfalls.

  8. #8
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: Signed jar -> invalid application

    Quote Originally Posted by hnipak View Post
    I do not think that is enough - the intermediate CA cert is missing in the certification path.

    And my experience is that root CA should be present in the JAD too, on some devices it is ok to omit it, but others will no accept such application as valid.
    I do not remember concrete brand/models by heart, sorry, it just appears it is safer to put the root CA cert into JAD too.
    So i have to add the root-certificate of the thawte to my keystore? And then i have to sign my .jad file with it?
    Can you write me the correct commands?

  9. #9
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: Signed jar -> invalid application

    Quote Originally Posted by traud View Post
    Please have a look at these instructions which include a lot of links and solutions for common pitfalls.
    First:
    The Manual says: The signing procedure can be done using the Carbide.j tool at http://www.forum.nokia.com/main/
    resources/tools_and_sdks/carbide/index.html or command line utilities. Both procedures are explained
    below.


    Second:
    And the followed link says: Forum Nokia has withdrawn Carbide.j because of the increasing availability of suitable open-source and free tools for mobile Java developers.

    Third:
    I use NetBeans and i can't find the Permissions tab.

    Can anyone help me?

  10. #10
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: Signed jar -> invalid application

    Working...

    NetBeans has done it well:
    http://developers.sun.com/mobility/r...-security.html

Similar Threads

  1. Invalid application
    By am65 in forum Mobile Java General
    Replies: 8
    Last Post: 2007-12-30, 16:52
  2. invalid jar file error on mobile!!
    By amitsamel in forum Mobile Java General
    Replies: 3
    Last Post: 2007-11-28, 04:40
  3. how to install jar file through my application
    By Basu in forum Mobile Java General
    Replies: 11
    Last Post: 2006-11-18, 05:03
  4. Installing signed application
    By hrdonka in forum Mobile Java General
    Replies: 4
    Last Post: 2005-10-19, 07:22
  5. Invalid jar file.
    By Shaikuny in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2005-10-01, 12:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×