Solved

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

Posted on 2004-03-29
11
389 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

821 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