[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iaik-jce] ClassCastException with jarsigner


I had the same problem with iaik.x509.X509Certificate. Instead of using
java.security.cert.X509Certificate, keytool used iaik.x509.X509Certificate.
To avoid this, don't install IAIK as the first security provider, install it
as the last in your java.security file (i.e.
security.provider.1=sun.security.provider.Sun, security.provider.2=iaik
.....), or add it as provider at runtime, but not with
iaik.security.provider.IAIK.addAsProvider() function, but with
java.Security.addProvider or java.security.insertProviderAt

----- Original Message -----
From: "Timo Neumann" <maillists@userland.de>
To: <iaik-jce@iaik.at>
Sent: Sunday, June 25, 2000 12:54 AM
Subject: [iaik-jce] ClassCastException with jarsigner

> Hi All!
> I've got a problem with the IAIK-JCE2.51 and the jarsigner from
> J2SE1.2.2/Linux:
> I copy iaik_jce_full.jar to ${java.home}/jre/lib/ext and
> made this change to ${java.home}/jre/lib/security/java.security:
> security.provider.1=iaik.security.provider.IAIK
> security.provider.2=sun.security.provider.Sun
> I then tried the commands from Suns Tutorial
> (see
> $ keytool -genkey -alias signFiles -keystore susanstore
> $ jarsigner -keystore susanstore -signedjar sCount.jar Count.jar signFiles
> Enter Passphrase for keystore: passpass
> jarsigner error: java.lang.ClassCastException: iaik.asn1.structures.Name
> $
> What's going wrong? Is there a workaround? Or won't I be able
> to use the security-tools with the IAIK-JCE?
> TIA,
> Timo

Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-jce