Dear all!
I am using the Netscape signing tool to sign my applets. When starting
the applet I get the following error message:
java.lang.SecurityException: cannot verify signature block file
META-INF/ZIGBERT
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$4.getInputStream(Unknown Source)
at sun.misc.Resource.getBytes(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$1(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This is my code:
public void init() {
try { jbInit();} catch(Exception e) { e.printStackTrace(); }
try {
PrivilegeManager.enablePrivilege("UniversalPropertyRead");
//hasPrivilege = true;
System.out.println("\tSuccess! Privilege is enabled.");
} catch (netscape.security.ForbiddenTargetException e) {
System.out.println("\tFailed! Permission to read system
properties denied by user.");
} catch (Exception e) {
System.out.println("\tFailed! Unknown exception while enabling
privilege.");
e.printStackTrace();
}
PrivilegeManager.enablePrivilege("UniversalFileRead");
PrivilegeManager.enablePrivilege("UniversalLinkAccess");
PrivilegeManager.enablePrivilege("UniversalConnect");
PrivilegeManager.enablePrivilege("UniversalPropertyWrite");
SystemAccess sys = new NetscapeSystemAccess();
SystemAccess.setSystemAccess(sys);
try {
System.out.println("Start OCF");
SmartCard.start();
.
.
.
The Self-signed certificate generated by "Netscape signing tool" is in
the signers list of Communicator!
What could cause this error then?
Greetings from Cologne!
Susanne Guth
Sema Group CGTec GmbH
[EMAIL PROTECTED]
phone +49 221 98175-23
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.