Solved

How to sign an applet for MS JVM and Sun JVM?

Posted on 2004-03-29
11
368 Views
Last Modified: 2013-11-21
I have a Java program written for 1.1 that can be standalone, or as an applet. However, since it is our backup program if our VB program fails to install, we prefer it to not be installed onto the client's computer, so as far as I can tell, I need to use it as an applet. Also, since our clients can be people using Win98 and MS JVM, it needs to be able to work with both MS JVM and Sun's.

The applet is hosted on the server it needs to open sockets with, however, in order to add proxy support to the applet, from what I can gather, is that it needs to be signed in order to have permissions to open sockets with the proxy instead.

Doing a search on the web, I've found that I can sign it with MS Java SDK, or Sun's Javakey. I can't find any links that will allow me to get the MS SDK. From the steps I've read on Javakey, it requires the client to manually accept certificates in the console, which is unacceptable.

How would I sign this applet so that it works on both JVMs and causes little (a security warning to be accepted at most) hassle for the client?
0
Comment
Question by:frankmorrison
  • 8
  • 2
11 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
You need to produce both a signed cab and a signed jar.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
>  in order to add proxy support to the applet

what sort of proxy support?
0
 
LVL 1

Author Comment

by:frankmorrison
Comment Utility
> You need to produce both a signed cab and a signed jar.
Yes, how would I do this?

> what sort of proxy support?
Currently, I am trying to get at least one authentication scheme going, so I have Basic added into the code. I'm planning to get Digest and maybe NTLM/Kerberos support added in eventually.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
Does your applet need to connect to a box other than the one it loaded from?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 92

Expert Comment

by:objects
Comment Utility
0
 
LVL 1

Author Comment

by:frankmorrison
Comment Utility
> http://personal.vsnl.com/sureshms/javasign1.html
This link gives methods for 1.2.2/1.3. I am using 1.1.

> http://www.mindprod.com/jgloss/signedapplets.html
This link gives methods mainly for 1.2+, but also has the MS Authenticode method which will work, but I need the MS SDK for.
I will award points if you can get me the link to the MS Java SDK, otherwise, this solution is a nogo.

> Does your applet need to connect to a box other than the one it loaded from?
Yes, it does. Our software needs to be able to work through a client's own proxy.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
> This link gives methods for 1.2.2/1.3. I am using 1.1.

it includes details for signing both for plugin and for MS VM.

>  if you can get me the link to the MS Java SDK,

The MS JDK is no longer available.
0
 

Expert Comment

by:lhshyong
Comment Utility
Hi,

Now Microsoft no longer support Java, so might hard to get the MS SDK, and as objects say, can consider no longer available, for information, maybe you can try this address.

http://support.microsoft.com/default.aspx?scid=kb;en-us;193877

Why not u use up the Sun SDK to sign the applet ?
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
Comment Utility
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now