Solved

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

Posted on 2004-03-29
11
380 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
 
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
Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

 
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange 2010 turning off 3des ciphers 2 131
object oriented programming comparison 5 57
expectj telnet failing 5 26
hibernate insert example 13 15
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…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

864 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

19 Experts available now in Live!

Get 1:1 Help Now