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

Re: [iaik-jce] Problem with demo.smime.TestSMime



I just tried it with JDK 1.2.2 Hotspot on Win32 and it went through
without problems.

 Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at


-----Ursprüngliche Nachricht-----
Von: Søren Hilmer <sh@itplus.dk>
An: <iaik-jce@iaik.tu-graz.ac.at>
Gesendet: Freitag, 03. September 1999 14:05
Betreff: [iaik-jce] Problem with demo.smime.TestSMime


> I try to run the TestSMime demo.
>
> But at a certain point i get:
> ...
> create self signed RSA CA certificate...
> Exception: java.lang.RuntimeException: Error creating the certificate:
> Encryptio
> n error: java.security.NoSuchAlgorithmException: No Cipher could be
> found for al
> gorithm RSA/1/PKCS1Padding
> iaik.utils.InternalErrorException: Could not instantiate
> PKCS5-PBKDF2-algorithm
> from provider IAIK.
>         at iaik.security.keystore.IAIKKeyStore.a(Unknown Source)
>         at iaik.security.keystore.IAIKKeyStore.engineStore(Unknown
> Source)
>         at java.security.KeyStore.store(KeyStore.java:580)
>         at demo.keystore.SetupKeyStore.saveKeyStore(Unknown Source)
>         at demo.keystore.SetupKeyStore.start(Unknown Source)
>         at demo.smime.TestSMime.start(TestSMime.java:57)
>         at demo.smime.TestSMime.main(TestSMime.java:72)
> Error saving KeyStore!
> iaik.utils.InternalErrorException: Could not instantiate
> PKCS5-PBKDF2-algorithm
> from provider IAIK.
>         at iaik.security.keystore.IAIKKeyStore.a(Unknown Source)
>         at iaik.security.keystore.IAIKKeyStore.engineStore(Unknown
> Source)
>         at java.security.KeyStore.store(KeyStore.java:580)
>         at demo.keystore.SetupKeyStore.saveKeyStore(Unknown Source)
>         at demo.keystore.SetupKeyStore.start(Unknown Source)
>         at demo.smime.TestSMime.start(TestSMime.java:57)
>         at demo.smime.TestSMime.main(TestSMime.java:72)
> initializing KeyStore...
>
>
> Apparently no cipher exists for RSA/1/PKCS1Padding, but should that not
> be RSA/SHA1/PKCS1Padding
> or something.
>
> I use JDK 1.2.2 and the version iaik-jce v. 2.51 (iaik_jce_full.jar)
and
> iaik-smime v. 2.52.
>
> Any suggestions?
>
> Regards
>   Søren
> ----------------------------------------------------------------------
> Søren Hilmer, M.Sc.
> Systems Development Phone:  +45 86 78 21 00
> IT+ A/S                                Fax:    +45 86 78 21 02
> Brendstrupgårdsvej 7                 Direct: +45 86 78 21 42 - 14
> 8200 Århus N                            Email:  sh@itplus.dk
> Denmark                                 WWW:    http://www.itplus.dk
> ----------------------------------------------------------------------



smime.p7s