Java Unlimited Strength Crypto Policy for Java 9 or 1.8.0_151

October 19, 2017java Starting with Java 1.8.0_151 and 1.8.0_152 there is a new somewhat easier way to enable the unlimited strength jurisdiction policy for the JVM. Without enabling this you cannot use AES-256 for example.

First download the JRE, I like to use the server-jre for servers. When you extract the server-jre look for the file java.security in the jre/lib/security folder. For example for Java 1.8.0_152 the file structure looks like this:

/jdk1.8.0_152 |- /jre |- /lib |- /security |- java.security Now open java.security with a text editor and look for the line that defines the java security property crypto.policy it can have two values limited or unlimited - the default is limited.

By default you should find a commented out line:

#crypto.policy=unlimited You can enable unlimited by uncommenting that line, remove the #:

crypto.policy=unlimited Now restart your java applications that point to the JVM and you should be all set.

转载于:https://my.oschina.net/kut/blog/3074086

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值