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

AW: [iaik-jce] keystore can't setup cert for trusted CAs



Hello,

SUN´s JCE only accepts signed providers. Removing SUN´s JCE from your
classpath should work.

Regards,
Dieter Bratko

-----Ursprüngliche Nachricht-----
Von: iaik-jce-owner@iaik.tu-graz.ac.at
[mailto:iaik-jce-owner@iaik.tu-graz.ac.at]Im Auftrag von Christian
Schoenwaelder
Gesendet: Freitag, 15. Dezember 2000 07:49
An: iaik-jce@iaik.tu-graz.ac.at
Betreff: [iaik-jce] keystore can't setup cert for trusted CAs


Hi,

i'm a bit lost right now. I did every step in the readme and installation
guide.
I downloaded the newest demo releases, so i hope this is all right. I have a
problem with creating the keystore file:

I hope someone can help me!
Cheers
Christian

> java demo.TestAll
***
***
***                    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.2
Java compiler: sunwjit
Java vendor-specific string: Sun Microsystems Inc.
Java vendor URL: http://www.sun.com/
Java installation directory: /disk16/FROM_USR/java1.2/jre
Java class format version number: 46.0
Java class path:
./users/httptest/cryptoStuff/iaik.Oct00/iSaSiLk3.03eval/src:
/users/httptest/cryptoStuff/iaik.Oct00/iSaSiLk3.03eval/lib/iaik_ssl.jar:
/users/httptest/cryptoStuff/iaik.Oct00/lib/iaik_ssl_demo.jar:
/users/httptest/cryptoStuff/iaik.Oct00/lib/w3c_http.jar:
/users/httptest/cryptoStuff/iaik.Oct00/lib/iaik_jce_demo.jar:
/users/httptest/cryptoStuff/iaik.Oct00/lib/iaik_jce_full.jar
Operating system name: SunOS
Operating system architecture: sparc
Operating system version: 5.6

Installed security providers providers:

Provider 1: IAIK  version: 2.61
Provider 2: SUN  version: 1.2
Provider 3: SunJSSE  version: 1.02
Provider 4: SunJCE  version: 1.2
Initializing random number generator...
Can't find 'jce.keystore'!
Create new keystore...
Create new KeyStore in directory: /users/httptest/cryptoStuff/iaik.Oct00/src
[y]y
KeyStore will be saved to:
/users/httptest/cryptoStuff/iaik.Oct00/src/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...
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.lang.SecurityException: Cannot set up certs for
trusted CAs
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Exception.java:42)
        at java.lang.RuntimeException.<init>(RuntimeException.java:47)
        at java.lang.SecurityException.<init>(SecurityException.java:39)
        at <Unloaded Method>
        at javax.crypto.Cipher.getInstance(Compiled Code)
        at iaik.security.rsa.RSASignature.engineInitSign(Unknown Source)
        at java.security.Signature.initSign(Signature.java:275)
        at iaik.x509.X509Certificate.sign(Unknown Source)
        at demo.keystore.SetupKeyStore.createCertificate(Unknown Source)
        at demo.keystore.SetupKeyStore.generateCertificates(Unknown Source)
        at demo.keystore.SetupKeyStore.start(Unknown Source)
        at demo.TestAll.start(Unknown Source)
        at demo.TestAll.main(Unknown Source)
--
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



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