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

[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 
----------------------------------------------------------------------
--
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