# It doesn't work :-(

Nathan X Sowatskey (sowatskey_nathan@jpmorgan.com)
Fri, 2 Oct 1998 13:27:45 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Nathan X Sowatskey: "JSECURITY Issue: Certificates"
- Previous message: krissy@peacefire.org: "broken link"

All

I have created a signer and set the keys and certificates so:

$ javakey -cs kapital true
Created identity [Signer]kapital[identitydb.obj][trusted]
$javakey -gk kapital DSA 512 kapital.pub kapital.priv
Generated DSA keys for kapital (strength: 512).
Saved public key to kapital.pub.
Saved private key to kapital.priv.
$ javakey -ikp kapital kapital.pub kapital.priv
Set public key from kapital.pub for kapital.
Set private key from kapital.priv for kapital.
$ javakey -gc kapital.directivefile
Generated certificate from directive file kapital.directivefile.

with directive file:

signer=kapital
cert=1
chain=0
signature.file=kapsig
issuer.name=kapital
issuer.cert=kapital
subject.name=kapital
subject.real.name=kapital
subject.country=uk
subject.org=kapital
subject.org.unit=kapital
start.date=7 Apr 1998
end.date=6 Apr 2002
serial.number=1
out.file=kapital2sig.jar
#out.file=kapital2sig.cert

I have signed a jar so:

$ javakey -gs kapital.directivefile kapital.jar
Adding entry: META-INF/MANIFEST.MF
Creating entry: META-INF/KAPSIG.SF
Creating entry: META-INF/KAPSIG.DSA

etc ..... (lots of files)

I have applet code so:

QueryTool Applet

# QueryTool Applet

when I run the applet I get:

Java(TM) Plug-in

Using JRE version 1.1.6

User home directory = C:\WINNT\Profiles\nsowatsk

Proxy Configuration: Automatic Proxy Configuration

JAR cache enabled.

Swing: checked access to system event queue.

Creating test file

Severity - 3 Exception in init() checkwrite
sun.applet.AppletSecurityException: checkwrite

at sun.applet.AppletSecurity.checkWrite(Compiled Code)

at
sun.plugin.ActivatorSecurityManager.checkDelete(ActivatorSecurityManager.ja
va:43)

at java.io.File.delete(File.java:618)

at
com.jpmorgan.kapital.QueryTool.QueryToolApplet.init(QueryToolApplet.java:35
)

at sun.applet.AppletPanel.run(Compiled Code)

at java.lang.Thread.run(Thread.java:474)

resulting from these lines of code in the applet:

System.out.println( "Creating test file" );
File test = new File( "test" );
test.delete();
System.out.println( "Deleted test file" );

The identitydb.obj is is C:\WINNT\Profiles\nsowatsk

Does anyone have any ideas of why this does not work as advertised?

I am working on NT4.0 with the mks toolkit as my shell in emacs.

Thank you

Nathan

- Next message: Nathan X Sowatskey: "JSECURITY Issue: Certificates"
- Previous message: krissy@peacefire.org: "broken link"