From: Martin P. <Mar...@ia...> - 2008-01-16 14:25:47
|
Hi... Carolin Latze wrote: > ./tccert.sh -i ca ca.ini [...] > generating CA certificates... > CAroot > 15:07:09:783 [INFO] CACertificate::<init> (49): generating RSA KeyPair > for CA certificate... > 15:07:16:902 [INFO] CACertificate::<init> (74): root CA cert ---> > issuerDN = subjectDN > Exception in thread "main" iaik.utils.InternalErrorException: > PBEParameterSpec type required > at iaik.pkcs.pkcs8.EncryptedPrivateKeyInfo.encrypt(Unknown Source) > at iaik.pkcs.pkcs8.EncryptedPrivateKeyInfo.encrypt(Unknown Source) > at iaik.pkcs.pkcs8.EncryptedPrivateKeyInfo.encrypt(Unknown Source) > at iaik.tc.cert.common.Common.writePrivateKeyToFile(Common.java:363) > at iaik.tc.TCcert.generateCA(TCcert.java:247) > at iaik.tc.TCcert.main(TCcert.java:118) [...] > Does anybody have an idea whats going wrong here? I am unable to reproduce your problem: .../testtccert/tccert-0.2.2$ java -version java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing) .../tccert-0.2.2$ ./tccert.sh -i ca ca.ini *** *** *** 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://jce.iaik.tugraz.at/sales/licences/. *** *** This message does not appear in the registered commercial version. *** *** *** generating CA certificates... CAroot 14:14:16:263 [INFO] CACertificate::<init> (49): generating RSA KeyPair for CA certificate... 14:14:19:132 [INFO] CACertificate::<init> (74): root CA cert ---> issuerDN = subjectDN CApe 14:14:19:926 [INFO] CACertificate::<init> (49): generating RSA KeyPair for CA certificate... 14:14:25:328 [INFO] CACertificate::<init> (71): derived CA cert CAek 14:14:25:440 [INFO] CACertificate::<init> (49): generating RSA KeyPair for CA certificate... 14:14:28:441 [INFO] CACertificate::<init> (71): derived CA cert CAaik 14:14:28:521 [INFO] CACertificate::<init> (49): generating RSA KeyPair for CA certificate... 14:14:33:813 [INFO] CACertificate::<init> (71): derived CA cert ...done Common problems: * Are you sure you use the signed(!) version of IAIK-JCE? * Are you sure you installed the "unlimited strength encryption" policy files for Java? As a future help, please also read my mail "XKMS 0.2 + Java 6" from 21.08.2007 on this mailing list. I attached "IAIK.class" again to this mail for your convenience. HTH, Martin |