Loading

How to find Java Cryptography Extension (JCE) is indeed working

Udgivelsesdato: Aug 4, 2025
Opgave

GOAL

Find out whether Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files are working. 

Trin

This could be easily verified by running the following command in your terminal or command window:

Unix OS:

jrunscript -e 'exit (println(javax.crypto.Cipher.getMaxAllowedKeyLength("AES") >= 256));'
Windows OS:
jrunscript -e "exit (println(javax.crypto.Cipher.getMaxAllowedKeyLength(\"AES\") >= 256));"

The output of this command will print true if JCE policy files have been applied and false if not. If the output is false then follow the instructions on the solution provided in this Knowledge Base article.

Note: The command jrunscript is bundled in the JDK. If you have installed only JRE, then you won't have access to this command. 
Vidensartikelnummer

001114757

 
Indlæser
Salesforce Help | Article