Results 1 to 3 of 3
  1. #1
    menzow is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default Java Certificate not showing up correctly

    Ok, so I succesfully signed my applet, all the data is correct..
    But when I open the browser, it displays different data than what I signed it with

    For example the PUBLISHER, stays "UNKNOWN" instead of my input data..

    Jar verify returns:
    Java Code:
             424 Tue Feb 22 21:54:26 VET 2011 META-INF/MANIFEST.MF
             268 Tue Feb 22 21:54:26 VET 2011 META-INF/SIGNFILE.SF
             991 Tue Feb 22 21:54:26 VET 2011 META-INF/SIGNFILE.DSA
               0 Tue Feb 22 21:54:24 VET 2011 META-INF/
    sm      1870 Tue Feb 22 21:54:24 VET 2011 Secure_Connection.class
    
          X.509, CN=Name, OU=Name, O=Name, L=Name, ST=Name, C=Name
          [certificate is valid from 2/22/11 9:54 PM to 11/18/13 9:54 PM]
    
    
      s = signature was verified
      m = entry is listed in manifest
      k = at least one certificate was found in keystore
      i = at least one certificate was found in identity scope
    
    jar verified.
    But still.. Publisher remains unknown :\
    How do I get it so it displays my name on there?

    image;

  2. #2
    Syahrul is offline Member
    Join Date
    Nov 2009
    Posts
    12
    Rep Power
    0

    Default

    This is the guideline I paste from captain.at, I use it and It worked so far displaying my name in the permission dialog.

    -------------------------------------------------------

    'keytool' is delivered with Sun's development kit.

    keytool -genkey -keyalg rsa -alias yourkey

    Follow the instructions and type in all needed information.

    Now we make the certificate:

    keytool -export -alias yourkey -file yourcert.crt


    Now we have to sign the applet:

    Just make a *.bat file including this:

    javac yourapplet.java
    jar cvf yourapplet.jar yourapplet.class
    jarsigner yourapplet.jar yourkey


    The batch-file compiles the applet, makes a jar-archive and signs the jar-file.

    The HTML-code to display the applet:

    <applet code="yourapplet.class" archive="yourapplet.jar" width="600" height="500">
    </applet>

    Hope this help.
    There's IF in LIFE :)

  3. #3
    menzow is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by Syahrul View Post
    This is the guideline I paste from captain.at, I use it and It worked so far displaying my name in the permission dialog.

    -------------------------------------------------------

    'keytool' is delivered with Sun's development kit.

    keytool -genkey -keyalg rsa -alias yourkey

    Follow the instructions and type in all needed information.

    Now we make the certificate:

    keytool -export -alias yourkey -file yourcert.crt


    Now we have to sign the applet:

    Just make a *.bat file including this:

    javac yourapplet.java
    jar cvf yourapplet.jar yourapplet.class
    jarsigner yourapplet.jar yourkey


    The batch-file compiles the applet, makes a jar-archive and signs the jar-file.

    The HTML-code to display the applet:

    <applet code="yourapplet.class" archive="yourapplet.jar" width="600" height="500">
    </applet>

    Hope this help.
    I don't see why I should export the key certificate from the keyfile?

Similar Threads

  1. java run correctly in the upper directory
    By dangr in forum New To Java
    Replies: 1
    Last Post: 01-29-2010, 06:52 PM
  2. Replies: 3
    Last Post: 01-14-2010, 07:45 PM
  3. Digital Certificate Chains using Java
    By cjordan in forum Advanced Java
    Replies: 0
    Last Post: 07-02-2009, 09:33 PM
  4. Java certificate
    By Nick15 in forum Java Certification
    Replies: 2
    Last Post: 11-12-2007, 06:02 AM
  5. Replies: 4
    Last Post: 08-10-2007, 10:09 PM

Posting Permissions

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