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

Re: [iaik-jce] JDK 1.2 jarsigner and ClassCastException



This error is caused by a bug in the Sun jarsigner tool.

iaik.asn1.structures.Name implements the Principal interface. The jarsigner
tool does not use the implemented interface.
Jarsigner casts Name to a Sun class which causes this error.
Sun is already informed about that.

Kind Regards,

Johannes Farmer


----- Original Message -----
From: Félix J. <fgarcia@aries.dif.um.es>
To: <iaik-jce@iaik.tu-graz.ac.at>
Sent: Tuesday, July 27, 1999 9:33 AM
Subject: [iaik-jce] JDK 1.2 jarsigner and ClassCastException


> I have taken this steps
>
> 1. Modified the java.security file (properties and keystore type)
>
> 2. keytool -genkey -keystore felix.iaik -alias felix -sigalg MD5withRSA
> -keyalg RSA -keysize 512 -storetype IAIKKeyStore
>
> 3. jarsigner -keystore felix.iaik -storetype IAIKKeyStore
> clienteapplet.jar felix
>
> I get the exception:
>    jarsigner error: java.lang.ClassCastException:
> iaik.asn1.structures.Name
>
> Why?? I don't understand this error.
>
> Thanks
> Félix
>
>
>
>
> --
> Mailinglist-archive at
http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html
>
> To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the
folowing content: UNSUBSCRIBE iaik-jce
>
>
>

--
Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html

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