Results 1 to 4 of 4
  1. #1
    Master Zero is offline Member
    Join Date
    May 2008
    Posts
    26
    Rep Power
    0

    Default [SOLVED] How to self-sign an Applet?

    Hello,

    I am trying to build a TCP applet client that is to connect to a remote server and send and receive data. I know that I cannot do this unless the applet is sign and granted permission by the client’s browser. My question is how do I go about self signing an applet? I read in a few other threads that it’s the jar file that gets signed, correct? My next question is after I sign it, do I apply to html code as usual? If so, what do I do with the jar file?

    I would really appreciated it if someone can write a small tutorial detailing how to sign, and use it once its signed. Thank you so much in advance.
    Last edited by Master Zero; 09-05-2008 at 04:07 PM.

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,873
    Rep Power
    25

    Default

    Here are the two batch files I used to sign a jar file:
    @REM Create a keystore for testing AppletReader
    keytool -genkey -alias signApplet -keypass SomeKey -keystore SomeKS -storepass SomeStore
    MORE
    @REM Sign AppletReader.jar to new jar file
    @echo keytool -genkey -alias signApplet -keypass SomeKey -keystore SomeKS -storepass SomeStore
    jarsigner -keystore SomeKS -signedjar sAppletReader.jar AppletReader.jar signApplet
    MORE
    whhat do I do with the jar file?
    Put the jar file with the html file with the <APPLET tag.

  4. #4
    Master Zero is offline Member
    Join Date
    May 2008
    Posts
    26
    Rep Power
    0

    Default

    Thank you!

    I was able to sign it and load it from a local HTML file, but I can’t load it from my web sever. It seems that it can’t find the class.

    Error
    load: class VNC not found.
    java.lang.ClassNotFoundException: VNC
    Code
    <applet code='VNC' archive='VNC.jar' width='100%' height='100%'></applet>
    Last edited by Master Zero; 09-05-2008 at 04:06 PM.

Similar Threads

  1. digital sign libraries
    By Shuru in forum Advanced Java
    Replies: 4
    Last Post: 11-07-2008, 09:01 AM
  2. Configuring single sign on tomcat
    By psrklr in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-24-2008, 07:53 PM
  3. Replies: 2
    Last Post: 06-02-2008, 11:24 PM
  4. Enterprise Sign On Engine Beta 2
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-12-2007, 07:00 PM
  5. Enterprise Sign On Engine 0.3
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-10-2007, 10:43 AM

Posting Permissions

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