class signing via javakey

ZAHMED.US.ORACLE.COM (ZAHMED@us.oracle.com)
14 Apr 97 15:17:08 -0700

Message-Id: <199704142233.PAA03872@mailsun3-fddi.us.oracle.com>
Date: 14 Apr 97 15:17:08 -0700
From: "ZAHMED.US.ORACLE.COM" <ZAHMED@us.oracle.com>
To: java-security@web2.javasoft.com
Subject: class signing via javakey

Hi,

I am using the javakey utility to generate X509 trusted code.
It seems that everything works when we try to sign jar files
using the command:

javakey -gs sign_directive_d2k signedRunform.jar

But if we decide to sign a specific class file, e.g.,

javakey -gs sign_directive_d2k myCode.class

results in following error:

error generating signature: ZIP file must have at least one entry[ZIP file
must have at least one entry]


What is the proper procedure of using an existing certificate to sign
individual class files rather than a zipped up JAR file? Does this need to b=
e
done programatically or can add proper signatures at class deployment time v=
ia
scripts that invoke javakey utilities.

Thanks,
Zahid Ahmed