Home
 
Business
 
Docs + Demos
Code Signing
History
Overview
Navigator code
Navigator signing
Explorer code
Explorer signing
Both signing
Java Plugin
Creating certs
Links
Palettes
Mantis BugTracker
Day/Night
 
Tools
 
Personal
 
Fun
 
Links
 
Clients only
 
Site map
 
Contact me
 
Code Signing: Signing for Both
Signing for both Navigator and Explorer

Although I've described the Navigator and Explorer signing processes separately, they can actually be done all at once and in the same directory. For instance, once you've set up everything as above, using the same top-level signing directory and applet directory, create the following DOS batch file called bothsign.bat:

REM First, get rid of any old archives
del %1\%1.cab
del %1\%1.jar
REM Now, build the two archives
call cabSign %1 %2 %3
call jarSign %1
REM Finally, clean up again, and move archives into directory
deltree /Y %1\meta-inf
copy /Y %1.cab %1
copy /Y %1.jar %1

Now, invoking bothsign with the name of the applet's directory, the formal name of the applet, and the Microsoft security level, will create both .cab and .jar archives, signed, sealed and delivered:

bothsign MyApplet "Super Duper Applet" "low"

Once you've created both .cab and .jar archives for a given applet, you can use both in the same piece of HTML code; each browser will select the archive it understands. Use code like this:

<title>My Wonderful Signed Applet</title>
<hr>
<applet code="MyApplet.class" ARCHIVE="MyApplet.jar" width=600 height=350>
<param name="CABBASE" value="MyApplet.cab">
</applet>
<hr>

Ain't technology wonderful?

Next section: Signing for the Sun Java Plugin

 

 

 
  
    Copyright © 2009 Daniel Griscom Site design myriadweb.com  
Home Page Home Page Home Page