Created
August 29, 2017 21:01
-
-
Save jeongho/15a434c9f8922e8ffe0bceb84751d42b to your computer and use it in GitHub Desktop.
Automating the process of installing Oracle’s JCE files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#spring microservers in action pp90 | |
#1. locate $JAVA_HOME/jre/lib/security directory | |
#2. backup {local,US_export}_policy.jar in $JAVA_HOME/jre/lib/security to a diff location | |
#3. unzip Oracle JCE zip file | |
#4. copy {local,US_export}_policy.jar to $JAVA_HOME/jre/lib/security directory | |
#5. configure spring cloud config to use encryption | |
cd /tmp/ | |
curl –k-LO "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" \ | |
-H 'Cookie: oraclelicense=accept-securebackup-cookie' && \ | |
unzip jce_policy-8.zip | |
rm jce_policy-8.zip | |
yes |cp -v /tmp/UnlimitedJCEPolicyJDK8/*.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment