Java
GuestBook
Security
Explorer
Netscape
JavaScript
Mouse Over
Layers
Menu
Windows
File Types
|  |
The Short Version: Signing an Netscape Java Applet
Alternatively, you can look at the long version.
- Use the PrivilegeManager to request Privileges example
- Compile
- Get a Certificate
- When you get the certificate, it will import the certificate into your
browser, if not then
- Wherever, your certificate is, export it.
- Copy the file to your system.
- Go to security and Click on "Yours" and select "Import", type in the
password that protects your private certificate.
- Create a signed jar file
- Get Zig Ship (winnt/95 only) - (if link fails: go here to find it or check if
unix is available)
- Load the packager.html file from the local file system
- Create new package,
- Add your classes.
- Click on "Sign"
- Save the jar file and include it in some HTML.
- Run it!
Example files
Try Mine - view java console for results.
A Few things to be careful of
- Access from a local file system is different from when it comes from a
web server. Also note that if your run the signed applet locally and then
the exact same applet from a web server, netscape will (erroneously) grant
you permission to run the privileges.
- Make sure when you think you have really signed the applet, that you
no longer have the code-base priniciple set in your preferences file.
- Remember that this only works for netscape. MS IE uses a different
system. And the appletviewer uses javakey.
The information on these pages are provided on an "AS IS" basis, and may be
used freely at your own risk. Addition usage information found on
each particular page.
olabs@olabs.com
|