Recently I ran into JDK installs from Oracle which had JCE files such as local_policy.jar
present in the jre/lib/security
directory but those files were dummies and did not truly enable Unlimited Strength encryption. After replacing them with downloads from Oracle, things went much smoother.
Now I'm thinking that there should be an easy way to sanity-test a system and prevent confusion like this. So, I'm wondering:
Which
keytool
operation could I run that would only succeed if the appropriate JCE jars were installed and in use?
That way, when it fails I know that local_policy.jar is either not available or there is a useless dummy file in place which should be swapped out with the real one.