Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem Signing Cab with Java Permissions - IE5

Posted on 1999-07-28
2
Medium Priority
?
364 Views
Last Modified: 2012-06-22
null
0
Comment
Question by:DonReese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
florinsuciu earned 400 total points
ID: 1247294
You can look at the following url:
http://support.microsoft.com/support/kb/articles/q168/9/41.asp
Q. 8. Why doesn't Internet Explorer display the test certificate from my signed CAB file?

A. If you are using a test certificate to sign your cab file, you must enable test certificates for the machine otherwise the signature is not considered valid. You can do this by running Setreg.exe from the SDK for Java 2.x (SDK\BIN\PACKSIGN) as follows:

   setreg 1 true


or the Wvtston.reg file included with the code signing kit.
Q. 9. When I run signcode.exe on my CAB file, I get the following error:


   q1. Unable to sign the program <cabfile>. (80004005)

   a. You did not reserve space in your CAB file. Recreate the CAB file
      using the -s 6144 option to cabarc.exe. This space must be reserved
      in the CAB file to allow room for the digital signature. Note, it is
      not necessary to use the -s switch with the signing tools included
      with the SDK for Java 2.0x. The signcode.exe utility will now create
      the necessary space for the certificate at the time the CAB is
      signed.

   q2. Unable to sign the program <cabfile>. (80030070)

   a. You did not reserve enough space in your CAB file. Recreate the CAB
      file using the -s 6144 option to cabarc.exe. NOTE: It is not
      necessary to use the -s switch with the signing tools included with
      the SDK for Java 2.0x. The signcode.exe utility will now create the
      necessary space for the certificate at the time the CAB is signed.

   q3. Unable to sign the program <cabfile>. (80070005)

   a. Your cabfile is marked read-only.

   q4. Unable to sign the program <cabfile>. (80070057)

   a. Your cabfile is corrupt.


Q. 10. When do I use the -s option for cabarc.exe?
A. The -s 6144 option reserves unnecessary space in most situations. With the 'test' certificate, you can typically get by with 1K of reserved space in the cab. A good estimate of the space required is slightly larger than the size of the .SPC file you are signing with. Also note, it is possible that the certificate will require more than 6144 bytes.

NOTE: It is not necessary to use the -s switch with the signing tools included with the SDK for Java 2.0x. The signcode.exe utility will now create the necessary space for the certificate at the time the CAB is signed.

Q. 11. How do I install a Java package on the user's machine?

A. With Internet Explorer 4.x (IE), you can also use DUBuild from the SDK for Java version 2.0x to create a distribution unit, and add the parameters USESLIBRARY, USESLIBRARYCODEBASE, and USESLIBRARYVERSION to your applet tag. The entire process is described at http://www.microsoft.com/java/sdk/20/tool/dubuildovr.htm. With Internet Explorer 3.x, you can use a setup information (.inf) file in a signed CAB to install Java libraries and packages on the local machine. The .inf file defines which files to extract from the CAB and where to place them on the user's system.

There is an example .inf file called Master.inf included in the SDK for Java. Place all the Java libraries and packages in a CAB file (the inner CAB file). In a second signed CAB file, place the unsigned "inner" CAB file and the .inf file. Reference the signed CAB file with an <OBJECT> tag in your HTML page. More information on this process is also available in the SDK for Java documentation.

Q. 12. For distributing trusted applets on my intranet, is there a more elegant solution than using a test certificate?

A. You can set up an in-house certificate server, using the Microsoft Certificate Server (available as part of NT Option Pack 4). Clients would have to be configured to trust that certificate authority, but once that is done they would recognize the in-house certificates as valid certificates. Alternatively, you can relax the security in Internet Explorer by installing the classes on the client machines in the local CLASSPATH or distribute the files in a CAB signed by a valid certificate authority. If you choose to sign using a test certificate, you will need to enable the test root certificate on the client machines by running "setreg 1 true" (Setreg.exe is available from the SDK for Java in the Bin\Packsign directory).

0
 

Author Comment

by:DonReese
ID: 1247295
The problem appears to be related to having a earlier version of the applet installed on the machine with improper permissions.  Of course I forgot to mention that I had installed an eariler version in the first place.
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

671 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