PKCS#12 keystore to Java keystore conversion
I wrote a small program for converting a PKCS#12 keystore containing private and public key to a Java keystore suitable for signing Java extensions (plugins/features). See KeystoreUtil for download, installation, usage and of course the source code.
Re: PKCS#12 keystore to Java keystore conversion
I have Jdk1.6.0_24 now and can not use this KeystoreUtil. I get the ClassNotFoundException. Is there some incompatability in the version of jdk I am using? How can I make this utilty work?
I am trying to Convert our certificate from PKCS#12 to Java Keystore format, so that we can sign 3rd party plugins.
All your assistance is much appreciated.
Exception in thread "main" java.lang.NoClassDefFoundError: KeystoreUtil
Caused by: java.lang.ClassNotFoundException: KeystoreUtil
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: KeystoreUtil. Program will exit.
Re: PKCS#12 keystore to Java keystore conversion
Indeed KeystoreUtil.jar is not found because it is not under my Java install folders. I downloaded/installed the jdk from this http://www.oracle.com/technetwork/java/javase/downloads/index.html oracle site.
Do I need to download extra jar files as well? If so, where do I get these from? I notice, there is tools.jar in the "lib" folder and not sure what would be in this jar file.




