java.security.InvalidKeyException: Illegal key size

java.security.InvalidKeyException: Illegal key size


环境JDK1.6
1、到以下网址:http://www.oracle.com/technetwork/java/javase/downloads/index.html下载Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6得到包jce_policy-6.zip
2、解决jce_policy-6.zip将里面的local_policy.jar和US_export_policy.jar复制并覆盖%JAVA_HOME%/jre/lib/security下的local_policy.jar和US_export_policy.jar

你可能感兴趣的:(java.security.InvalidKeyException: Illegal key size)