Tutorial :Is Apache XML security library compatibile with IBM's JDK



Question:

I developed an application that uses Apache XML security library for xml encryption and signing. It runs on SUN's JDK without any problems, however, IBM JDK gives me tons of problems.

It doesn't sign right (validation fails), pkcs11 provider fails to encrypt.

It seems that problem is because IBM provides their own security providers. I tried to comment out those providers (namely fips), and I almost managed to get same behaviour as on sun's jdk, except pkcs11 provider, which alwasy fails.

Any suggestions?


Solution:1

Does this thread help - http://www.ibm.com/developerworks/forums/message.jspa?messageID=1315965?

I had trouble in the past with an SSL enabled web application in Apache Tomcat because Tomcat defaults to using algorithm=SunX509 when you define a secure Connector. When using the IBM JDK, you must override by explicitly using algorithm=Ibmx509.

I'm guessing there's a similar issue at the root of your problem.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »