Java Cryptography Extension (JCE)

By default the Java cryptographic keys have the limited maximum key length 128-bits. This is due to various legal aspects, but anyhow some applications require keys longer than 128. Therefore you can use the JCE patch to remove this limitation of Java.

How to install the JCE patch
  1. Go to the "/lib/security" folder and remove "local_policy.jar" and "US_export_policy.jar" from there. (cut and past them to backup them at some other place)
  2. Download the jce_policy-6.zip from here 
  3. Extract the downloaded jce_policy-6.zip
  4. Copy "local_policy.jar" and "US_export_policy.jar" from the extracted "jce" folder to "/lib/security"

Now your JVM must be restarted for patch to be effected so restarting your Java application is required.

Popular posts from this blog

How To Read A SAML 2.0 Response With OpenSAML

Exporting The Private Key Of A JKS As A PEM File

How To Enable SSL Debugging In Tomcat