Skip to content

Instantly share code, notes, and snippets.

@kloudsamurai
Last active September 10, 2021 13:53
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save kloudsamurai/b644351abde2058edcdfbcceca436f64 to your computer and use it in GitHub Desktop.
Save kloudsamurai/b644351abde2058edcdfbcceca436f64 to your computer and use it in GitHub Desktop.
Install Java via Homebrew (brew) on Mac OSX with unlimited strength JCE
brew update
brew cask install java
brew cask install jce-unlimited-strength-policy
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
@kloudsamurai
Copy link
Author

To see which java versions are currently installed:

/usr/libexec/java_home -V

@tina1998612
Copy link

I see this err:
Error: Cask 'jce-unlimited-strength-policy' is unavailable: No Cask with this name exists.

@cthrax
Copy link

cthrax commented Jan 22, 2018

Ditto.

@gumho
Copy link

gumho commented Apr 25, 2018

Starting in Java 1.8u151, you can just set crypto.policy=unlimited to your java.security file and skip downloading the unlimited strength jars. This is mentioned in release notes here: http://www.oracle.com/technetwork/java/javase/8all-relnotes-2226344.html#R180_151.

@jeremyschlatter
Copy link

Starting in Java 1.8u161, unlimited strength cryptography is enabled by default. https://stackoverflow.com/a/45055461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment