I spent a considerable amount of time yesterday trying to figure out how to convert a PFX file to JKS.
I tried several approaches including this one from BEA, but I could not seem to make them work.
It was already very late when I saw an interesting blog post from CB1.
And guess what? His solution worked!
The outlined steps use a special utility from Jetty’s libraries.
java -classpath lib/jetty-6.1.8.jar org.mortbay.jetty.security.PKCS12Import MyCert.pfx MyCert.jks
Thanks to the Jetty developers for providing this utility.
And thanks to the original blog author for the tip.
Jetty rules!
i am trying to view the links but they don’t work, can you help me bringme the tutorials to know how convert pfx to jks. thanks for your help.
Hi Emilio,
Sorry for the links, I just saw that the Oracle nameserver for the BEA site is currently failing while the blog I referred to is also currently down.
You just need to download a copy of Jetty: http://dist.codehaus.org/jetty/jetty-6.1.22/jetty-6.1.22.zip, look for the jar file in the archive and run the command I mentioned in my post.
Let me know how it works!
Thanks.
-Paul
i just want to say thank’s for your help, everything works perfectly!!!
You’re most welcome!
Great, works also for me. Thanks
I confirm that is necessary java >= 1.5