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

[iaik-jce] SetupSMimeKeyStore problem



I'm currently evaluating IAIK-JCE 2.6 with IAIK S/MIME 2.6. When I tried to
run the SetupSMimeKeyStore class in IAIK S/MIME 2.6, I encountered the
following error :

adding Provider IAIK...


Java version number: 1.2

Java compiler: symcjit

Java vendor-specific string: Sun Microsystems Inc.

Java vendor URL: http://java.sun.com/

Java installation directory: D:\jdk1.2.2\jre

Java class format version number: 46.0

Java class path:
D:\IAIK-JCE2.6ev\lib\iaik_jce_full.jar;D:\IAIK-SMIME2.6ev\lib\iaik_smime.jar
;D:\j2sdkee1.2.1\lib\j2ee.jar;D:\bankcert\classes;.;d:\Kawa4.01\kawaclasses.
zip;d:\jdk1.2.2\lib\tools.jar;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\jre\lib
\i18n.jar

Operating system name: Windows NT

Operating system architecture: x86

Operating system version: 4.0



Installed security providers providers:


Provider 1: IAIK  version: 2.6

Provider 2: SUN  version: 1.2

Provider 3: DSTC  version: 0.99

Create new KeyStore in directory: D:\bankcert [y]y
KeyStore will be saved to: D:\bankcert\smime.keystore

generate RSA KeyPair for CA certificate [1024 bits]...

Generate signing keys...

generate RSA KeyPair for a test certificate [512 bits]...

generate RSA KeyPair for a test certificate [1024 bits]...

generate RSA KeyPair for a test certificate [2048 bits]...

Generate encryption keys...

generate RSA KeyPair for a test certificate [512 bits]...

generate RSA KeyPair for a test certificate [1024 bits]...

generate second RSA KeyPair for a test certificate [1024 bits]...

generate RSA KeyPair for a test certificate [2048 bits]...

create self signed RSA CA certificate...

Exception: java.lang.RuntimeException: Error creating the certificate:
InitSign error: java.security.NoSuchAlgorithmException: RSA/ECB/PKCS1Padding
not found

iaik.utils.InternalErrorException: Could not instantiate
PKCS5-PBKDF2-algorithm from provider IAIK. 

	at iaik.security.keystore.IAIKKeyStore.a(Compiled Code)

	at iaik.security.keystore.IAIKKeyStore.engineStore(Compiled Code)

	at java.security.KeyStore.store(KeyStore.java:580)

	at
demo.smime.keystore.SetupSMimeKeyStore.saveKeyStore(SetupSMimeKeyStore.java:
242)

	at
demo.smime.keystore.SetupSMimeKeyStore.start(SetupSMimeKeyStore.java:472)

	at
demo.smime.keystore.SetupSMimeKeyStore.main(SetupSMimeKeyStore.java:481)

Error saving KeyStore!

java.lang.NullPointerException

	at iaik.security.keystore.IAIKKeyStore.a(Compiled Code)

	at iaik.security.keystore.IAIKKeyStore.engineStore(Compiled Code)

	at java.security.KeyStore.store(KeyStore.java:580)

	at
demo.smime.keystore.SetupSMimeKeyStore.saveKeyStore(SetupSMimeKeyStore.java:
242)

	at
demo.smime.keystore.SetupSMimeKeyStore.start(SetupSMimeKeyStore.java:472)

	at
demo.smime.keystore.SetupSMimeKeyStore.main(SetupSMimeKeyStore.java:481)

>From the attached error messages, I've pretty sure that I've the RSA
implementation on my classpath. In fact, I've also tried the libraries
iak_jce.jar, rsa_rc4.jar and idea.jar, same error will happen. 

Any idea on how to fix the problem so that I can continue to evaluate the
software ?

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