Solved

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

Posted on 2004-03-29
11
396 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
ID: 10709826
You need to produce both a signed cab and a signed jar.
0
 
LVL 92

Expert Comment

by:objects
ID: 10709834
>  in order to add proxy support to the applet

what sort of proxy support?
0
 
LVL 1

Author Comment

by:frankmorrison
ID: 10709875
> 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 92

Expert Comment

by:objects
ID: 10709887
0
 
LVL 92

Expert Comment

by:objects
ID: 10709895
Does your applet need to connect to a box other than the one it loaded from?
0
 
LVL 92

Expert Comment

by:objects
ID: 10709899
0
 
LVL 1

Author Comment

by:frankmorrison
ID: 10710006
> 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
ID: 10710111
> 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
ID: 10710207
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
ID: 10710231
0
 
LVL 92

Expert Comment

by:objects
ID: 10718385
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 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