×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    4

    Invalid Certificate error with Verisign Java code signing certificate on Series 40

    Hi,

    I have a new verisign java code signing certificate and I have signed my j2me app using it. I am able to install the application on Nokia series S60 phones without any error. However when I try to install this application on Nokia series 40 phones, it gives me "Invalid Certificate" error. I have tried it on the following two phones:

    1. Nokia C2-01 phone with software version: V 10.50 07-01-11 RM-721 (c) Nokia

    2. Nokia X2-01 phone with software version: V 04.90 28-09-10 RM-618 (c) Nokia

    I have also followed the discussion on the following link, which suggests having a common name with no spaces:

    http://www.developer.nokia.com/Commu...0-3rd-emulator

    And my new java certificate from verisign is having no spaces in the common name. Even with this the application is not installing on the Nokia series 40 phones giving the "Invalid certificate" error. As per Verisign support, they have checked the certificate chain in the signed application jad and jar file and it is correct. My application's jar and jad files are available at the following link:

    http://m.s2pay.com:8889/skey/resourc...mmonsigned.jad
    http://m.s2pay.com:8889/skey/resourc...mmonsigned.jar

    Can someone please let me know what could be the issue and how can I install a signed application in Nokia series 40 phones? Please also note, that unsigned version of the same application is installing on above phones.

    Appreciate any help to resolve the issue.

    Thanks,
    Nirmal

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Invalid Certificate error with Verisign Java code signing certificate on Series 4

    Hello Nirmal,

    and welcome to Nokia Developer Discussion Boards!

    How about if you remove this one from the JAD?:

    MIDlet-Certificate-1-4: MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhEBarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/isI19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBABByUqkFFBkyCEHwxWsKzH4PIRnN5GfcX6kb5sroc50i2JhucwNhkcV8sEVAbkSdjbCxlnRhLQ2pRdKkkirWmnWXbj9T/UWZYB2oK0z5XqcJ2HUw19JlYD1n1khVdWk/kfVIC0dpImmClr7JyDiGSnoscxlIaU5rfGW/D/xwzoiQ

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    4

    Re: Invalid Certificate error with Verisign Java code signing certificate on Series 4

    Hi,

    thank you very much for your response.

    This is what I tried:

    1. First I removed the MIDlet-Certificate-1-4: line from the jad file and kept the jar file same. After this when I tried to download the app on phone(Nokia C2-01) it was able to recognize the certificate and downloaded the application. However after that it failed saying invalid application.

    2. Hence, I thought, I might have to remove that certificate from my certificate chain. Since there was no way to just remove the certificate from the chain, I replaced my verisign certificate. This time, I did not install the above root in my keystore and imported the new verisign certificate. With this I generated the jad and jar files. This time the above certificate -1-4 was not generated by the jarsigner as it was not in my certificate chain.
    However now I am getting following errors in these phones:
    a. In nokia c2-01 - It fails saying service not available. Even though internet is working fine and I am able to access the url.
    b. In nokia X2-01, it is failing with the error "No certificate on phone or SIM"

    Can you please suggest how to proceed further?

    Thanks,
    Nirmal

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    4

    Re: Invalid Certificate error with Verisign Java code signing certificate on Series 4

    FYI, the new jad and jar files are uploaded to the same location.

  5. #5
    Registered User
    Join Date
    Sep 2011
    Posts
    4

    Re: Invalid Certificate error with Verisign Java code signing certificate on Series 4

    Hi r2j7,

    Finally the issue is resolved. You are right we need to remove the MIDlet-Certificate-1-4 line from JAD but also it is required that for Series 40, we should NOT sign the jar file and only sign the jad file. After that the application is able to install on both nokia c2-01 and x2-01.

    I would also like to thank traud for the following post:

    http://www.developer.nokia.com/Commu...442#post813442

    which helped in resolving this issue.

    Thank you very much.

    Regards,
    Nirmal

Similar Threads

  1. Verisign or thawte sign certificate Not allow app signing
    By HAKrBOY in forum General Development Questions
    Replies: 3
    Last Post: 2013-12-01, 17:12
  2. Signing Midlet with trial verisign certificate
    By mpharsha in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2010-09-16, 21:35
  3. j2me Code Signing-Verisign has unique ROOT Certificate?
    By Nikolaos in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2009-01-08, 21:46
  4. j2me Code Signing: Self Signed Certificate VS Unknown Certificate VS No Certificate?
    By Nikolaos in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2008-11-22, 20:34
  5. Signing mobile application with VeriSign certificate
    By askhat.salihov in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-09-17, 15:56

Posting Permissions

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