This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes PFX to JKS Conversion error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "PFX to JKS Conversion error" Watch "PFX to JKS Conversion error" New topic
Author

PFX to JKS Conversion error

Ravikumar Jambunathan
Ranch Hand

Joined: Aug 25, 2003
Posts: 66
Hi Experts,

I have a Java program which converts a PFX key store (generated in another system) into Java key store. The Java key store will be referenced by the application from AIX. The program and conversion was working fine all along. However, when i try to convert the key store renewed recently, i am getting below exception.

java.io.IOException: Error in loading the keystore: Error decoding X.509 CRL from encoding. at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:694) at ConvertPKCS12ToJKS.main(ConvertPKCS12ToJKS.java:78)


However, there is no problem in converting the same PFX file in Windows. Here is the log.

Input keystore file = D:/EclipseProjects/GW.pfx_ExportfromIE_Jan
Output keystore file = D:/EclipseProjects\bolero_keystore.jks
Input keystore password = test2
Output keystore password = password
Keystore provider name = Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
alias=[{4448e346-018f-4e47-b452-a27fb3688f5b}]
Keystore converstion complete.


But, when i try to check the converted key store in AIX using key tool command, it fails opening with the below keytool error

keytool error (likely untranslated): java.security.cert.CertificateParsingException: java.io.IOException: java.io.IOException: DerValue.getIA5String, not IA5 30

I have already applied the more relaxed security jar files from IBM, still the problem persists.

I am using Java 1.5

Can somebody help on this please?
Thanks in advance for your help.

Regards,
Ravi.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: PFX to JKS Conversion error
 
Similar Threads
another guy who can't get SSL working within Tomcat
Keystore and Encryption
SSLHandshakeException
Sign a jar with a third party certificate, using keytool and jarsigner
How to add a Digital Certificate