Java Security: Illegal key size or default parameters?

前端 未结 19 1459
日久生厌
日久生厌 2020-11-22 03:34

I had asked a question about this earlier, but it didn\'t get answered right and led nowhere.

So I\'ve clarified few details on the problem and I would really like t

19条回答
  •  清酒与你
    2020-11-22 03:47

    If you are using Linux distribution with apt and have added webupd8 PPA, you can simply run the command

    apt-get install oracle-java8-unlimited-jce-policy
    

    Other updates:

    1. The Unlimited Strength Jurisdiction Policy Files are included with Java 9 and used by default
    2. Starting with Java 8 Update 161, Java 8 defaults to the Unlimited Strength Jurisdiction Policy.
    3. Starting with Java 8 Update 151, the Unlimited Strength Jurisdiction Policy is included with Java 8 but not used by default. To enable it, you need to edit the java.security file in /jre/lib/security (for JDK) or /lib/security (for JRE). Uncomment (or include) the line

      crypto.policy=unlimited

      Make sure you edit the file using an editor run as administrator. The policy change only takes effect after restarting the JVM

    Before Java 8 Update 151 rest of the answers hold valid. Download JCE Unlimited Strength Jurisdiction Policy Files and replace.

    For more details, you can refer to my personal blog post below - How to install Java Cryptography Extension (JCE) unlimited strength jurisdiction policy files

提交回复
热议问题