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

Re: [iaik-jce] SetupSMimeKeyStore problem



Fact is it works perfectly fine for me under JDK 1.2.2 (we do not have
JDK 1.2.0 any longer).

That means that this is either a JDK bug or a problem with your
installation. I suggest that your make sure the classes in
d:\bankcert\classes are not causing the trouble and that you do not have
some crypto classes installed in your jre/lib/ext directory.

Regards,

 Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.at


-----Ursprüngliche Nachricht-----
Von: "Ricky Wong" <RickyWong@dahsing.com>
An: "'Andreas Sterbenz'" <Andreas.Sterbenz@iaik.at>
Cc: <iaik-jce@iaik.tu-graz.ac.at>
Gesendet: Donnerstag, 21. September 2000 09:47
Betreff: RE: [iaik-jce] SetupSMimeKeyStore problem


> By referring to the attached program output of the sample program :
>
> D:\bankcert\classes\demo\keystore>java -cp
> d:\bankcert\classes;d:\iaik-jce2.6ev\
> lib\iaik_jce_full.jar demo.keystore.SetupKeyStore
> ***
> ***
> ***                    Welcome to the IAIK JCE Library
> ***
> ***
> ***
> *** This version of IAIK JCE is licensed for educational and research
use
> ***
> *** and evaluation only. Commercial use of this software is prohibited.
> ***
> *** For details please see http://jcewww.iaik.at/legal/license.htm .
> ***
> *** This message does not appear in the registered commercial version.
> ***
> ***
> ***
>
> 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: E:\Program Files\JavaSoft\JRE\1.2
> Java class format version number: 46.0
> Java class path:
d:\bankcert\classes;d:\iaik-jce2.6ev\lib\iaik_jce_full.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
> Create new KeyStore in directory: D:\bankcert\classes\demo\keystore
> [y]KeyStore
> will be saved to: D:\bankcert\classes\demo\keystore\jce.keystore
> generate RSA KeyPair for CA certificate [1024 bits]...
> 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 DSA KeyPair for CA certificate [1024 bits]...
> generate DSA KeyPair for a test certificate [512 bits]...
> generate DSA KeyPair for a server certificate [1024 bits]...
> generate DSA KeyPair for a server certificate [2048 bits]...
> generate DH KeyPair for a test certificate [512 bits]...
> generate DH KeyPair for a server certificate [1024 bits]...
> generate DH KeyPair for a server certificate [2048 bits]...
> create self signed RSA CA certificate...
> sha1WithRSAEncryption
> 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.keystore.SetupKeyStore.saveKeyStore(SetupKeyStore.java:228)
>         at demo.keystore.SetupKeyStore.start(SetupKeyStore.java:516)
>         at demo.keystore.SetupKeyStore.main(SetupKeyStore.java:544)
> 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.keystore.SetupKeyStore.saveKeyStore(SetupKeyStore.java:228)
>         at demo.keystore.SetupKeyStore.start(SetupKeyStore.java:516)
>         at demo.keystore.SetupKeyStore.main(SetupKeyStore.java:544)
>
> It is clear that the IAIK provider has been selected correctly and no
other
> JCE provider (exception the SUN provider) can be loaded. In fact, I've
> written some testing programs and it seems that I cannot instantiated
any
> Cipher class (even with other algorithms such as "DES" or "DESede") at
all.
> The library I'm using the the version 2.6 which was just downloaded
> recently.
>
> > -----Original Message-----
> > From: Andreas Sterbenz [mailto:Andreas.Sterbenz@iaik.at]
> > Sent: Thursday, September 21, 2000 15:30
> > To: Ricky Wong
> > Cc: iaik-jce@iaik.tu-graz.ac.at
> > Subject: Re: [iaik-jce] SetupSMimeKeyStore problem
> >
> >
> > > java.security.NoSuchAlgorithmException: Transformation
> > RSA/ECB/PKCS1Padding
> > > not found in provider IAIK
> >
> > This error message is not generated by the IAIK code. That
> > means you are
> > using someone elses JCE implementation that does not seem to
correctly
> > implement the specification. Check your CLASSPATH to see
> > where that code
> > comes from.
> >
> > Regards,
> >
> >  Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.at
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: "Ricky Wong" <RickyWong@dahsing.com>
> > An: "'Dieter Bratko'" <Dieter.Bratko@iaik.at>
> > Cc: <iaik-jce@iaik.tu-graz.ac.at>
> > Gesendet: Donnerstag, 21. September 2000 08:31
> > Betreff: RE: [iaik-jce] SetupSMimeKeyStore problem
> >
> >
> > I found that the problem happens when the system try to make the
> > following
> > call :
> >
> > Cipher rsa = Cipher.getInstance("RSA/ECB/PKCS1Padding", "IAIK");
> >
> > In fact, the following error will occur even when I run
> > program with the
> > above line :
> >
> > java.security.NoSuchAlgorithmException: Transformation
> > RSA/ECB/PKCS1Padding
> > not found in provider IAIK
> >
> > It seems that the RSA implementation is not included, but I'm
> > sure that
> > I've
> > included either the rsa_rc4.jar or iaik_jce.jar in my CLASSPATH.



smime.p7s