★ wanayoo — archive 1999 http://java.sun.com/security/policy.htmlNouvelle recherche | Portail wanayoo
Java Technology Home Page
Downloads, APIs, Documentation
Java Developer Connection
Docs, Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide

A-Z Index

The Source for Java Technology

USING JAVAKEY: POLICY RECOMMENDATIONS

The file named "identitydb.obj" is the Identity Database where identities and certificates are stored. Depending on the policy at your site, you may choose to store both public and private keys in an identity database, or public keys only. When any key is stored in the database, it is stored using the X509 certificate file format. Identities are stored as either trusted or untrusted. This is significant: when an identity is marked as trusted in the identitydb.obj used by your system, then any downloaded applets signed by that identity are allowed to run with full rights on your computer. For this reason,

  • Don't allow individual users of the system to mark identities as trusted. The system administrator should mark identities as trusted.

  • Don't allow malicious users to gain access to the private keys of users who are marked as trusted in your system.

Since the identity database is an unencrypted file and is subject to "insider attacks", the system administrator for your site should store the site's identitydb.obj in a protected area of the file system. Only the system administrator should add and remove identities to this database, and only the system administrator should mark identities as trusted.

We recommend that individuals create and store their private keys locally, and submit their public keys to the system administrator, who can then add their public key to the system-wide identity database. It is up to the discretion of the system administrator whether or not an individual's identity should be entered into the database as trusted.

Recommendations for individuals

If you plan to sign JAR files with your own private key, create and store your private key(s) in your own identitydb.obj, and take care to safeguard this file.
  1. Install your own version of JDK 1.1 in a secure area
  2. Add the property
    	identity.database=/a/safe/directory/mydb.obj 
    
    to the property file found in
    	$DESTDIR/lib/security/java.security
    
    where DESTDIR is the name of the directory where you installed JDK 1.1.

For example, if I install JDK 1.1 in /usr/jdk1.1, and

  • that area is not exported from my computer
  • I don't allow unauthenticated logins to my computer
  • that file system is read-only by me alone

then I can feel confident that my identity database, which contains my private key, is protected.

Recommendations for system administrators

  1. Create the system's identity database in a secure area of the file system. Add the property
    	identity.database=/a/safe/directory/systemdb.obj 
    
    to the property file found in
    	$DESTDIR/lib/security/java.security
    
    where DESTDIR is the name of the directory where you installed JDK 1.1.

    Use whatever file protection mechanisms are available on the underlying operating system to safeguard this file. Only the authorized system administrators for your site should be allowed to modify this file.

  2. Ask individuals to send you their public keys, in X.509 certificate format, as generated by javakey. Be sure that they submit their identity's nickname along with the X.509 certificate itself.

  3. Add the certificate to the system database

  4. If warranted, mark the newly-entered identity as trusted




Back to Using javakey

Last modified 09/28/99

java-security@sun.com


[ This page was updated: 27-Mar-00 ]

Products & APIs | Developer Connection | Docs & Training | Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary - Applets - Tutorial - Employment - Business & Licensing - Java Store - Java in the Real World
Feedback | Map | A-Z Index

For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-2000 Sun Microsystems, Inc.
All Rights Reserved. Terms of Use. Privacy Policy.